Is it possible to open popup using an angular service like ionAlertController or ionModalController?


#1

I want to write a common popup with configurable properties. In each of my ionic page, i only need to inject the service and call the open method. Right now, i need to declare mbsc-popup in every page. is there a better way to achieve this? thanks.


#2

Hi @jolin_lai,

Can you give a little bit more info on what are the properties that you would like to configure on the popup? We have created the alert, confirm and prompt functions specifically for showing the user these kind of notifications. Have you considered these? Here are a few demos.

Let us know your thoughts!