O'Reilly logo

Hybrid Mobile Development with Ionic by Gaurav Saini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Alerts

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 (https://ionicframework.com/docs/v2/native/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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required