I am working with an AlertController that appears after adding a new note. It offers two options: "new note" and "see notes". If the user selects "see notes", they should be directed to another page to view a list of notes. If they select "new note", they should stay on the current page to add a new note. Can anyone advise on how to navigate to a different page when selecting an option in the alertCtrl?
Here is my current code snippet:
showConfirm() {
let confirm = this.alertCtrl.create({
title: 'What do you want to do else?',
buttons: [
{
text: 'New note',
handler: () => {
console.log('New note');
}
},
{
text: 'See notes',
handler: () => {
console.log('See notes');
}
}
]
});
confirm.present();