本文整理匯總了TypeScript中ionic-angular.NavController.setRoot方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript NavController.setRoot方法的具體用法?TypeScript NavController.setRoot怎麽用?TypeScript NavController.setRoot使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ionic-angular.NavController
的用法示例。
在下文中一共展示了NavController.setRoot方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
.subscribe(respostaID=>{
this.id = respostaID[0].id;
console.log("enviando" + " = " + this.id);
this.nav.setRoot(PacientesPage, {setid: this.id});
},error => {
示例2: homePage
homePage() {
this.navController.setRoot(HomePage);
}
示例3: goToEvents
goToEvents() : void {
this.nav.setRoot(HelloIonicPage);
}
示例4: logout
logout(){
this.af.auth.logout();
this.navCtrl.setRoot(LoginPage);
this.af.auth.unsubscribe();
window.location.reload();
}
示例5:
this.formulario.value.cliente_id, this.formulario.value.id_bodega).then(() =>{
this.navCtrl.setRoot(ListaPage)
})
示例6:
this.auth.login('twitter').then(() => {
this.navCtrl.setRoot(HomePage);
});
示例7: openLocationPage
openLocationPage() {
// navigate to the new page if it is not the current page
this. nav.setRoot(LocationPage);
}
示例8:
Stamplay.User.currentUser().then((res)=>{
if(res.user._id != undefined )
{
this.nav.setRoot(TabLayoutPage);
}
});
示例9: loginSuccess
loginSuccess(loggedInUser){
this.nav.setRoot(TabLayoutPage,{'trainerData' : loggedInUser});
}
示例10:
{title: 'Sign Out', func: () => {
jwt.removeJwt();
navCtrl.setRoot(HomePage);
}}];