I have created an Ionic Tabs Application.
Tabs.html:
<ion-tabs>
<ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="md-home"></ion-tab>
<ion-tab [root]="tab2Root" tabTitle="About" tabIcon="md-information-circle"></ion-tab>
<ion-tab [root]="tab3Root" tabTitle="My Account" tabIcon="md-log-in"></ion-tab>
</ion-tabs>
and Tabs.ts
@Component({
templateUrl: 'tabs.html'
})
export class TabsPage {
tab1Root = HomePage;
tab2Root = AboutPage;
tab3Root = LoginPage;
constructor()
{}
}
What I want to do is once I'm on tab3Root (LoginPage) and I login, I want to change it to the LoggedinPage. Maintaining the other tabs functioning and normal.
Is that possible? If yes how please?
Thank you
Added Info: check/edit this link it contains my code as example stackblitz.com/edit/ionic-yff2sx