我建立一个离子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();
}
}
不关闭该警告框我怎样才能确保当我在盒子外面点击时,警报不会被解除?