本文整理汇总了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);
});
}
}
示例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) => {
示例3: logout
logout(): void {
window.localStorage.removeItem('username');
window.localStorage.removeItem('password');
this.nav.setRoot(LoginPage);
this.nav.popToRoot();
}
示例4:
modal.onDidDismiss(() => {
if (this.fromOnboarding) {
this.navCtrl.push(DisclaimerPage);
} else {
this.navCtrl.popToRoot({ animate: false });
}
});
示例5: doOpenSignPage
doOpenSignPage(){
if(this.group.status == 3) {
this.nav.popToRoot();
} else {
this.nav.push(SignPage, {group:this.group});
}
}
示例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 });
});
}
示例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) => {
示例8: async
async () => {
this.toastCtrl.show({
message: 'Password changed',
duration: 4000,
});
this.navCtrl.popToRoot();
this.navCtrl.first().dismiss();
},
示例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();
}
示例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 });
});
}