I'm new to Ionic4 and currently working on an app for my thesis. The question seems very simple but I searched for hours and still don't have a working awnser.
SCENARIO:
On my app.component.html I got a simple SideMenu:
<ion-app>
<ion-split-pane>
<ion-menu>
</ion-menu>
<ion-router-outlet main></ion-router-outlet>
</ion-split-pane>
</ion-app>
And in the app.component.ts I get a value from the storage wheather it's the first login of the user. If it's the first login he should be routed to /intro:
this.storage.get('selectedClass').then( val => {
this.firstLogin = val == undefined;
if(this.firstLogin){
this.router.navigateByUrl('/intro', { replaceUrl: true });
}
});
On the intro page the user can click on a button which sets the storage variable and route back to /home
Question: How is it possible to hide the menu if the user is on the IntroPage?