Alerts are the components provided in Ionic for showing trigger alerts, confirm, prompts, or some specific actions. AlertController can be imported from ionic-angular, which allows us to programmatically create and show alerts inside the application. One thing to note here is these are JavaScript popups and not the native platform popups. There is a Cordova plugin called cordova-plugin-dialogs (, which you can use if native dialog UI elements are required. Currently there are five types of alerts that we can show in the Ionic app, basic alert, prompt alert, confirmation alert, radio, and checkbox alerts. A radio alert inside src/pages/products/products.html is for sorting products: ...

Get Hybrid Mobile Development with Ionic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.