Ion-menu not working


#1

Hi

I am trying to add a menu to my App, but I seem to be doing something wrong, I am just unable to figure out what. Is anybody able to see what I might be doing wrong?

The page is showing without a problem, I can also see the menu button in the top bar, but when I click on it, nothing happens.

Thank you, to anyone who might shed some light…

app.html

<ion-menu [content]="content">
  <ion-toolbar>
    <ion-title>Pages</ion-title>
  </ion-toolbar>
  <ion-content>
    Test menu
  </ion-content> 
</ion-menu>

<ion-nav *ngIf="rootPage" id="nav" #content [root]="rootPage"></ion-nav>

and, my page

<ion-navbar *navbar>
  <button menuToggle>
    <ion-icon name="menu"></ion-icon>
  </button>
  <ion-title>
    Page
  </ion-title>
</ion-navbar>

<ion-content>
 Page content
</ion-content>

#2

Take a look at the sidemenu starter for a quick idea on how to wire things together.

ionic start myApp sidemenu --v2