本文整理匯總了TypeScript中ionic-angular.Alert.dismiss方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Alert.dismiss方法的具體用法?TypeScript Alert.dismiss怎麽用?TypeScript Alert.dismiss使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ionic-angular.Alert
的用法示例。
在下文中一共展示了Alert.dismiss方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
this.db.createNewTeam(teamName).then((team: Team) => {
console.log('team-sign-in', 'alertThatTeamDoesNotExist', '>>>', team);
if (team) this.navCtrl.push(PlayerCreationPage, { teamID: team.teamID, isAdmin: true });
else {
alert.dismiss();
this.alertThatTeamCouldNotBeCreated();
}
});
示例2:
this._platform.ready().then(() => {
if (this._alert) {
this._alert.dismiss();
}
this._alert = this._createAlert(updateAlertType);
if (this._alert) {
this._alert.present();
}
});
示例3: handleLogout
handleLogout(alert: Alert): void {
alert.dismiss().then(() => {
return this.phoneService.logout();
})
.then(() => {
this.navCtrl.setRoot(LoginPage, {}, {
animate: true
});
})
.catch((e) => {
this.handleError(e);
});
}