Answers for "ionic 3 alert"

2

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();
}
Posted by: Guest on July-07-2021
1

ionic 3 alert css custom

let alert = this.alertCtrl.create({
	title: 'Low battery',
    subTitle: '10% of battery remaining',
    buttons: ['Dismiss'],
    cssClass: 'custom-class'
});
alert.present();
Posted by: Guest on July-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language