Hello, I have a bug with sidemenu in menu which is in page folder.
I wanted to use menu module.
so I removed menu tag from app.component template.
it works fine until using below code.
I’m using firebase auth so in app.component It checks auth from firebase so decide a root page.
when I develop it refresh page and then menu icon is hidden.
for example.
- working on http://localhost:8100/#/menu/content
- if refresh page
- ion-nav which is app.component.ts template is load over menu.html
- so menu button is hidden
How can I solve this isuue?
Please Help me.
platform.ready().then(() => {
const authObserver = this.afAuth.authState.subscribe(user => {
if(user){
this.rootPage = 'MenuPage';
}else{
this.rootPage = 'WelcomePage';
}
});
}