本文整理汇总了TypeScript中ionic-angular.NavController类的典型用法代码示例。如果您正苦于以下问题:TypeScript NavController类的具体用法?TypeScript NavController怎么用?TypeScript NavController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NavController类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
this.authData.signupUser(this.signupForm.value.email, this.signupForm.value.password).then(() => {
this.nav.setRoot(HomePage);
}, (error) => {
示例2: addNote
public addNote(title: string, body: string): void {
let modal = Modal.create(MyModal);
this.nav.present(modal)
}
示例3:
.then((res: any) => {
this.navCtrl.pop(); //Go back to all passages page
});
示例4:
.then(function (response) {
console.debug('logged in', response);
nav.setRoot(HomePage);
})
示例5: signInClick
signInClick() {
this.nav.push(Main);
}
示例6: requireAuth
static requireAuth(): boolean {
console.log("here route helper");
const { auth, nav } = AuthRouteHelper;
if (!auth.authenticated) this.nav.push(LoginPage);
return auth.authenticated;
}
示例7: goToImportWallet
public goToImportWallet(coin): void {
this.navCtrl.push(ImportWalletPage, { coin });
}
示例8: gotoProfile
gotoProfile(){
this.nav.push(Profile);
}
示例9: changePass
changePass() {
this.navCtrl.push(LoginPage)
}
示例10: gotocategory
gotocategory(){
this.nav.push(CategoriesPage);
}