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


TypeScript NavController.remove方法代碼示例

本文整理匯總了TypeScript中ionic-angular.NavController.remove方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript NavController.remove方法的具體用法?TypeScript NavController.remove怎麽用?TypeScript NavController.remove使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ionic-angular.NavController的用法示例。


在下文中一共展示了NavController.remove方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: GetSeedAction

 this.sub = this.store.let(getCreatedAsset).filter(p => p !== null).subscribe((asset: PaymentProviderAsset) => {
   // Go back to asset overview, and in case an action is required handle it.
   if (asset.required_action) {
     this.assetsService.handleRequiredAction(asset);
   }
   if (asset.type === 'cryptocurrency_wallet') {
     this.store.dispatch(new GetSeedAction({
       algorithm: 'ed25519',
       message: null, // It shouldn't be asked anymore  here
       keyName: asset.provider_id
     }));
     // Show the export page and remove the current and previous page from the stack.
     this.nav.remove(this.nav.getActive().index - 1, 2).then(r => this.nav.push(ExportAssetPageComponent));
   } else {
     this.nav.remove(this.nav.getActive().index - 1).then((r: any) => this.nav.pop());
   }
 });
開發者ID:our-city-app,項目名稱:mobicage-payment,代碼行數:17,代碼來源:add-asset-page-2.component.ts

示例2:

	navCtrl.push(view, params, options).then(() => {
		navCtrl.remove(navCtrl.length() - count - 1, count)
	})
開發者ID:whispeer,項目名稱:app,代碼行數:3,代碼來源:angularUtils.ts

示例3:

 this.nav.push(PayStep2PageComponent).then(() => {
   // Remove PayStep1PageComponent from the stack
   this.nav.remove(this.nav.getActive().index - 1);
 });
開發者ID:our-city-app,項目名稱:mobicage-payment,代碼行數:4,代碼來源:pay-step-1-page.component.ts

示例4: removePageFromHistory

 protected removePageFromHistory() {
   const startIndex = this.navCtrl.getActive().index - 1;
   this.navCtrl.remove(startIndex, 1);
 }
開發者ID:bitpay,項目名稱:copay,代碼行數:4,代碼來源:purchased-cards.ts

示例5: goBack

	goBack() {
		// for some reason pop() doesn't update z-index - overlaps list page (looks like ionic bug)
		this.nav.remove();
	}
開發者ID:pawelgur,項目名稱:angular-2-ionic-sandbox,代碼行數:4,代碼來源:details.page.ts

示例6: Skip

	Skip()
	{

		 this.nav.remove(1);
		this.nav.push(TabsPage);
	}
開發者ID:DannyChanSz,項目名稱:shrimp-frontend,代碼行數:6,代碼來源:startPage.ts

示例7: dismissModal

 dismissModal() {
   const firstViewCtrl = this.navCtrl.first();
   this.navCtrl.remove(firstViewCtrl.index, this.navCtrl.length()).then(() => {
     firstViewCtrl.dismiss(undefined, undefined, { animate: false });
   });
 }
開發者ID:ifiske,項目名稱:iFiske,代碼行數:6,代碼來源:create-account-verify.ts

示例8:

 this.navCtrl.push(AccountPage).then(() => {
   let index = this.viewCtrl.index;
   this.navCtrl.remove(index);
 });
開發者ID:lqxlcc,項目名稱:Ionic2-CNodeClub,代碼行數:4,代碼來源:login.ts


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