本文整理匯總了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);
}