当前位置: 首页>>代码示例>>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;未经允许,请勿转载。