當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript NgbActiveModal.dismiss方法代碼示例

本文整理匯總了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(); }
		});
開發者ID:RinMinase,項目名稱:anidb,代碼行數:3,代碼來源:add-season.component.ts

示例2: onSaveSuccess

 private onSaveSuccess(result: UserVerbFormLevel) {
     this.eventManager.broadcast({ name: 'userVerbFormLevelListModification', content: 'OK'});
     this.isSaving = false;
     this.activeModal.dismiss(result);
 }
開發者ID:,項目名稱:,代碼行數:5,代碼來源:

示例3: onSaveSuccess

 private onSaveSuccess(result: Billing) {
     this.eventManager.broadcast({ name: 'billingListModification', content: 'OK'});
     this.isSaving = false;
     this.activeModal.dismiss(result);
 }
開發者ID:chenshao0594,項目名稱:eshop,代碼行數:5,代碼來源:billing-dialog.component.ts

示例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 }}]);
 });
開發者ID:bonhamcm,項目名稱:generator-jhipster,代碼行數:6,代碼來源:_user-management-delete-dialog.component.ts

示例5: requestResetPassword

 requestResetPassword () {
     this.activeModal.dismiss('to state requestReset');
     this.router.navigate(['/reset', 'request']);
 }
開發者ID:JayRaparla,項目名稱:jhipster,代碼行數:4,代碼來源:login.component.ts

示例6: onSaveSuccess

 private onSaveSuccess(result: CadastrosLocalidades) {
     this.eventManager.broadcast({ name: 'cadastrosLocalidadesListModification', content: 'OK'});
     this.isSaving = false;
     this.activeModal.dismiss(result);
 }
開發者ID:rogrs,項目名稱:loja,代碼行數:5,代碼來源:cadastros-localidades-dialog.component.ts

示例7:

 .catch((error) => {
     this.activeModal.dismiss(error);
 });
開發者ID:GitWhiskey,項目名稱:composer,代碼行數:3,代碼來源:identity-issued.component.ts

示例8: dismiss

	/**
	 * Dismisses this modal.
	 */
	dismiss(): void {
		this.activeModal.dismiss();
	}
開發者ID:iadgov,項目名稱:WALKOFF,代碼行數:6,代碼來源:messages.modal.component.ts

示例9: register

 register () {
     this.activeModal.dismiss('to state register');
     this.$state.go('register');
 }
開發者ID:JimSpriggs,項目名稱:sourdough,代碼行數:4,代碼來源:login.component.ts

示例10: requestResetPassword

 requestResetPassword () {
     this.activeModal.dismiss('to state requestReset');
     this.$state.go('requestReset');
 }
開發者ID:JimSpriggs,項目名稱:sourdough,代碼行數:4,代碼來源:login.component.ts


注:本文中的@ng-bootstrap/ng-bootstrap.NgbActiveModal.dismiss方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。