I have following:
let loader = this.loadingCtrl.create({
dismissOnPageChange: true,
});
loader.present().then(authData => {
let alert = this.alertCtrl.create({
title: '',
message: 'Cadastrado com sucesso!',
buttons: [
{
text: 'Ok',
handler: data => {
this.navCtrl.setRoot(LoginPage);
}
}
]
});
alert.present();
});
Code worked however, I got the following error:
EXCEPTION: Uncaught (in promise): false