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: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access