本文整理汇总了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());
}
});
示例2:
navCtrl.push(view, params, options).then(() => {
navCtrl.remove(navCtrl.length() - count - 1, count)
})
示例3:
this.nav.push(PayStep2PageComponent).then(() => {
// Remove PayStep1PageComponent from the stack
this.nav.remove(this.nav.getActive().index - 1);
});
示例4: removePageFromHistory
protected removePageFromHistory() {
const startIndex = this.navCtrl.getActive().index - 1;
this.navCtrl.remove(startIndex, 1);
}
示例5: goBack
goBack() {
// for some reason pop() doesn't update z-index - overlaps list page (looks like ionic bug)
this.nav.remove();
}
示例6: Skip
Skip()
{
this.nav.remove(1);
this.nav.push(TabsPage);
}
示例7: dismissModal
dismissModal() {
const firstViewCtrl = this.navCtrl.first();
this.navCtrl.remove(firstViewCtrl.index, this.navCtrl.length()).then(() => {
firstViewCtrl.dismiss(undefined, undefined, { animate: false });
});
}
示例8:
this.navCtrl.push(AccountPage).then(() => {
let index = this.viewCtrl.index;
this.navCtrl.remove(index);
});