Has anyone tried navigating from a one page to tab page(generated in ionic sample code) with minimal changes or no changes.
Below is code snippet -
app.routing.ts
const routes: Routes = [
{ path: '', loadChildren: './login/login.module#LoginPageModule' },
{ path: 'tabs', loadChildren: './tabs/tabs.module#TabsPageModule' },
{ path: 'profile', loadChildren: './profile/profile.module#ProfilePageModule' }
]
login.page.ts
registerUser(){
this.navCtrl.navigateRoot('profile')
}
profile.page.ts
createProfile() {
this.navCtrl.navigateRoot('tabs')
}
Can similarly we navigate from profile page to tabs page, I am using the above approach. How to change my tabs.routing.ts to make it work as it works on any normal tabs application loading into dom.