【发布时间】:2017-07-24 07:58:35
【问题描述】:
我有一个 AlertController 在添加新注释后会弹出。它有两个选项:“新笔记”和“查看笔记”。当按下“查看笔记”时,它应该进入另一个页面以查看笔记列表。当按下“新笔记”时,它应该留在此页面上以添加新笔记。那么,如何按下alertCtrl选项按钮进入另一个页面呢?
现在我有:
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();
【问题讨论】:
标签: angular typescript ionic-framework mobile-development