Skip to content

📋 Tutorial from Simon Grimm of the Ionic Academy to create an app with 2 side menus

License

Notifications You must be signed in to change notification settings

AndrewJBateman/ionic-angular-multMenus

Repository files navigation

⚡ Ionic Multiple Menus

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • Tab1 and Tab2 both contain ion-menus and a side-bar with routing to 2 pages.

📷 Screenshots

Ionic page Ionic page

📶 Technologies

💾 Setup

  • Run npm i to install dependencies
  • To start the server on localhost://8100 type: 'ionic serve'

💻 Code Examples

export class Tab1Page {
  panelEnabled = true;
  constructor(private menuController: MenuController) {}

  ionViewWillEnter() {
    this.panelEnabled = true;
    this.menuController.enable(true, 'first');
  }

  ionViewWillLeave() {
    this.panelEnabled = false;
  }

🆒 Features

  • Uses a panelEnabled boolean value to control menu disabling.

📋 Status & To-do list

  • Status: Working.
  • To-do: Nothing.

👏 Inspiration

📁 License

  • This project is licensed under the terms of the MIT license.

✉️ Contact