本文整理匯總了TypeScript中@ng-bootstrap/ng-bootstrap.NgbActiveModal.dismiss方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript NgbActiveModal.dismiss方法的具體用法?TypeScript NgbActiveModal.dismiss怎麽用?TypeScript NgbActiveModal.dismiss使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@ng-bootstrap/ng-bootstrap.NgbActiveModal
的用法示例。
在下文中一共展示了NgbActiveModal.dismiss方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
}).then((result) => {
if (result.value) { this.modal.dismiss(); }
});
示例2: onSaveSuccess
private onSaveSuccess(result: UserVerbFormLevel) {
this.eventManager.broadcast({ name: 'userVerbFormLevelListModification', content: 'OK'});
this.isSaving = false;
this.activeModal.dismiss(result);
}
示例3: onSaveSuccess
private onSaveSuccess(result: Billing) {
this.eventManager.broadcast({ name: 'billingListModification', content: 'OK'});
this.isSaving = false;
this.activeModal.dismiss(result);
}
示例4:
this.userService.delete(login).subscribe(response => {
this.eventManager.broadcast({ name: 'userListModification',
content: 'Deleted a user'});
this.activeModal.dismiss(true);
this.router.navigate([{ outlets: { popup: null }}]);
});
示例5: requestResetPassword
requestResetPassword () {
this.activeModal.dismiss('to state requestReset');
this.router.navigate(['/reset', 'request']);
}
示例6: onSaveSuccess
private onSaveSuccess(result: CadastrosLocalidades) {
this.eventManager.broadcast({ name: 'cadastrosLocalidadesListModification', content: 'OK'});
this.isSaving = false;
this.activeModal.dismiss(result);
}
示例7:
.catch((error) => {
this.activeModal.dismiss(error);
});
示例8: dismiss
/**
* Dismisses this modal.
*/
dismiss(): void {
this.activeModal.dismiss();
}
示例9: register
register () {
this.activeModal.dismiss('to state register');
this.$state.go('register');
}
示例10: requestResetPassword
requestResetPassword () {
this.activeModal.dismiss('to state requestReset');
this.$state.go('requestReset');
}