I was going through the documentation for how to add a menu to your app and I got really confused. I did step 1, which was adding the menu to app.html :
<ion-menu persistent="true" id='menu' side="left" type='reveal' [content]="mycontent"> some menu content </ion-menu> <ion-nav #mycontent [root]="rootPage"></ion-nav>
But here are the things that really confused me :
1)Why does the menu content need to be attached to ion-nav ?
2)Why does the page that opens the menu need to be the root page ?
3)What does setting persistent to true do ?
Essentially, I want my application to have access to the menu by clicking a menu toggle button in the navbar of that page, and I want all my pages to be able to do this. Simple use case, just need help figuring it out. I just know for sure that I shouldn’t have to set up a button in every .html page and a corresponding openMenu() function in the .ts file to be able to use the menu