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();
}
let alert = this.alertCtrl.create({
title: 'Low battery',
subTitle: '10% of battery remaining',
buttons: ['Dismiss'],
cssClass: 'custom-class'
});
alert.present();