当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript NavController.popToRoot方法代码示例

本文整理汇总了TypeScript中ionic-angular.NavController.popToRoot方法的典型用法代码示例。如果您正苦于以下问题:TypeScript NavController.popToRoot方法的具体用法?TypeScript NavController.popToRoot怎么用?TypeScript NavController.popToRoot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ionic-angular.NavController的用法示例。


在下文中一共展示了NavController.popToRoot方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: openScanner

 public openScanner(): void {
   if (this.navParams.data.fromScan) {
     this.navCtrl.popToRoot({ animate: false });
   } else {
     this.navCtrl.popToRoot({ animate: false }).then(() => {
       this.navCtrl.parent.select(2);
     });
   }
 }
开发者ID:bitjson,项目名称:copay,代码行数:9,代码来源:join-wallet.ts

示例2:

    this.profileProvider.joinWallet(opts).then((wallet: any) => {
      this.onGoingProcessProvider.clear();
      this.events.publish('status:updated');
      this.walletProvider.updateRemotePreferences(wallet);

      if (!wallet.isComplete()) {
        this.navCtrl.popToRoot();
        this.navCtrl.push(CopayersPage, { walletId: wallet.credentials.walletId });
      } else {
        this.navCtrl.popToRoot();
      }
    }).catch((err: any) => {
开发者ID:bitjson,项目名称:copay,代码行数:12,代码来源:join-wallet.ts

示例3: logout

    logout(): void { 
    window.localStorage.removeItem('username');
    window.localStorage.removeItem('password');
 
        this.nav.setRoot(LoginPage);
      this.nav.popToRoot();   
    } 
开发者ID:PhilippeAMAT,项目名称:Ionic2,代码行数:7,代码来源:home.ts

示例4:

 modal.onDidDismiss(() => {
   if (this.fromOnboarding) {
     this.navCtrl.push(DisclaimerPage);
   } else {
     this.navCtrl.popToRoot({ animate: false });
   }
 });
开发者ID:bitjson,项目名称:copay,代码行数:7,代码来源:backup-game.ts

示例5: doOpenSignPage

 doOpenSignPage(){
   if(this.group.status == 3) {
     this.nav.popToRoot(); 
   } else {
     this.nav.push(SignPage, {group:this.group});
   }
 }
开发者ID:eongoo,项目名称:valuator,代码行数:7,代码来源:evaluate-group.ts

示例6: scan

 public scan(): void {
   this.walletProvider.startScan(this.wallet);
   this.navCtrl.popToRoot({ animate: false }).then(() => {
     this.navCtrl.parent.select(0);
     this.navCtrl.push(WalletDetailsPage, { walletId: this.wallet.credentials.walletId });
   });
 }
开发者ID:bitjson,项目名称:copay,代码行数:7,代码来源:wallet-addresses.ts

示例7:

 this.profileProvider.deleteWalletClient(this.wallet).then(() => {
   this.events.publish('status:updated');
   this.onGoingProcessProvider.clear();
   this.pushNotificationsProvider.unsubscribe(this.wallet);
   this.navCtrl.popToRoot({ animate: false }).then(() => {
     this.navCtrl.parent.select(0);
   });
 }).catch((err) => {
开发者ID:bitjson,项目名称:copay,代码行数:8,代码来源:wallet-delete.ts

示例8: async

 async () => {
   this.toastCtrl.show({
     message: 'Password changed',
     duration: 4000,
   });
   this.navCtrl.popToRoot();
   this.navCtrl.first().dismiss();
 },
开发者ID:ifiske,项目名称:iFiske,代码行数:8,代码来源:confirm-password-recovery.ts

示例9: submit

    submit() {
        console.log('test1');
        console.log(this.builder);
        
        this.builder.addComment(this.comment); 
        
        console.log('test2');

        this.storage.storeSubmission(this.builder.getSubmission()); 
        this.nav.popToRoot();
    }
开发者ID:codeforcologne,项目名称:sagsunskoeln-app,代码行数:11,代码来源:description.page.ts

示例10: clearTransactionHistory

  public clearTransactionHistory(): void {
    this.logger.info('Removing Transaction history ' + this.wallet.id);

    this.walletProvider.clearTxHistory(this.wallet);

    this.logger.info('Transaction history cleared for :' + this.wallet.id);

    this.navCtrl.popToRoot({ animate: false }).then(() => {
      this.navCtrl.parent.select(0);
      this.navCtrl.push(WalletDetailsPage, { walletId: this.wallet.credentials.walletId, clearCache: true });
    });
  }
开发者ID:bitjson,项目名称:copay,代码行数:12,代码来源:wallet-transaction-history.ts


注:本文中的ionic-angular.NavController.popToRoot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。