當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。