2
Good guys, I’m learning Ionic now in college, and would like to know if it is possible, in an Alert, to make it only after the user click 'ok', in my case 'change', it go to a certain page? Thank you for your attention.
Code:
presentConfirm() {
let alert = this.alertCtrl.create({
title: 'Alteração',
message: 'Você realmente deseja alterar?',
buttons: [
{
text: 'Não',
role: 'cancel',
handler: () => {
console.log('Clicou no Cancelar');
}
},
{
text: 'Sim',
handler: () => {
console.log('Clicou no Alterar');
}
}
]
});
alert.present();
}
Thank you very much, it worked!
– Christian Gomes da Silva