I created the Ionic Tabs app.
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 when I am on tab3Root (LoginPage) and I am logged in, I want to change it to LoggedinPage. Maintaining other tabs, functioning and normal.
Is it possible? If so, how please?
thank
Information added: check / edit this link which contains my code as an example stackblitz.com/edit/ionic-yff2sx
source
share