Hi, Today i’m trying to create a alert message with icon visiblity. Still i didnt able to merge the ion-icon value with ion-alert. Is their any possibe to use the ion-icons in the ion-alert. Please guide me.
async presentAlert( alertMsg : string,
title : string,) {
const alert = await this.alertController.create({
header : title,
message : alertMsg,
buttons: ['OK']
});
await alert.present();
}
msgAlert() {
const text = ' <ion-icon name="warning"></ion-icon>This is an Error Message';
const tit = "Error";
this.msg.presentAlert(text,tit);
}
Thanks,
Ashok Lingesan.