Hi,
I have build a menu with app.component.html and also its a splitpane side menu and its working great, the problem is I use the :
this.router.events.subscribe((event: RouterEvent) => {
if (event instanceof NavigationEnd && (event.url === '/intro' || event.url === '/login' || event.url === '/register')) {
this.menuCtrl.enable(false);
}
});
for hiding the sidemenu so its not visible for not logged in user, but it happens that when I want to pull data from the services auth module where I stored all the user data, it does not happen at all, the userdata are not being pulled from storage :
this.userdata.getUserDetail().then((res)=>{
console.log('user details:'+res);
});
its not pulling on the app.component.ts anything did I miss? as other pages worked fine