Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ionic 3 alert

import { AlertController } from 'ionic-angular';
...
constructor(private alertCtrl: AlertController) {}
...
presentAlert() {
  let alert = this.alertCtrl.create({
    title: 'Low battery',
    subTitle: '10% of battery remaining',
    buttons: ['Dismiss']
  });
  alert.present();
}
Source by ionicframework.com #
 
PREVIOUS NEXT
Tagged: #ionic #alert
ADD COMMENT
Topic
Name
7+5 =