- App that displays different menus for tabs 1 and 2.
- Tutorial code from Simon Grimm of the Ionic Academy see 👏 Inspiration below
- Note: to open web links in a new window use: ctrl+click on link
- Tab1 and Tab2 both contain ion-menus and a side-bar with routing to 2 pages.
- Run
npm i
to install dependencies - To start the server on localhost://8100 type: 'ionic serve'
- Tab1 page code to show first (of two) menus using the Ionic MenuController provider.
export class Tab1Page {
panelEnabled = true;
constructor(private menuController: MenuController) {}
ionViewWillEnter() {
this.panelEnabled = true;
this.menuController.enable(true, 'first');
}
ionViewWillLeave() {
this.panelEnabled = false;
}
- Uses a
panelEnabled
boolean value to control menu disabling.
- Status: Working.
- To-do: Nothing.
- This project is licensed under the terms of the MIT license.
- Repo created by ABateman, email: [email protected]