I have the following code below
let alert = this.alertCtrl.create({
message: '<div><img height="50" src="assets/imgs/success.png"></div><div>' +
'<p>Cadastrado com sucesso!!!</p>' +
'</div>',
buttons: [{
text: 'OK',
handler: data => {
console.log('Ok clicked');
}
}]
});
alert.present();
Where am I using importing AlertController
like this:
import { AlertController } from 'ionic-angular';
View the image as it stands:
IwouldliketocenterthecontentofAlertController
,butIhavetrieditinsomewaysbutitdoesnotwork,suchas this way , but does not recognize it.
Is there any way to centralize content from div
to AlertController
?