我建立一個離子2應用程序,我現在用的是以下組件如何點擊它外面當離子2
http://ionicframework.com/docs/components/#alert
import { AlertController } from 'ionic-angular';
export class MyPage {
constructor(public alertCtrl: AlertController) {
}
showAlert() {
let alert = this.alertCtrl.create({
title: 'New Friend!',
subTitle: 'Your friend, Obi wan Kenobi, just accepted your friend request!',
buttons: ['OK']
});
alert.present();
}
}
不關閉該警告框我怎樣才能確保當我在盒子外面點擊時,警報不會被解除?