what should i do if i want 2 menus depending on what type of user use the app? for example user and admin
@subashsharma23373 жыл бұрын
how should I add app menu on child component, instead of doing this it is automatically initialized when app component is initialized ,
@TechAssembler3 жыл бұрын
simply create the component and define the menu, but the controlling part should be done from app.component.ts as app menu is visible through out the application and it's functions like closing/opening the menu is accessible.
@satyajitroy53144 жыл бұрын
How to redirect to different page according to menu item clicked.
@TechAssembler4 жыл бұрын
Hi, for code visit: github.com/techassembler/Ionic-5-Angular/blob/master/Ion-menu/src/app/app.component.ts here! openEnd(item: string) { console.log(item + '--> is clicked') this.menu.close(); // write code to move to specific page or another page // like i want to move to my profile page from side menu so this.router.navigate(['/profile']); } the side navbar will be closed and redirected to profile page if not cleared please feel free to reply!.