April 2017
Beginner to intermediate
378 pages
7h 57m
English
The next plugin we are going to work with is the dialogs plugin. This triggers the alert, confirm, and prompt windows.
You can learn more about the plugin from here: https://github.com/apache/cordova-plugin-dialogs and https://ionicframework.com/docs/native/dialogs/.
First, scaffold a new blank app for the dialogs plugin:
ionic start -a "Example 18" -i app.example.eightteen example18 blank --v2
Once the app is scaffolded, cd into the example18 folder. Now we will add the dialogs plugin, run:
ionic plugin add cordova-plugin-dialogs
After that, we will add the Ionic Native module for dialogs. Run the following command:
npm install --save @ionic-native/dialogs
Next, add Dialogs as a provider. Update example18/src/app/app.module.ts ...
Read now
Unlock full access