Side menu on different pages other than root page


i am stuck .whether i can add side menu on pages other than root page …
plz suggest


You can add it on the app.html file, and control if the user is logged, show the <ion-menu>.


i have already added in app .hml

<–!<ion-menu [content]=“content” >





You added like this? Here is the docs of Menu.

<ion-menu [content]="mycontent">
      <p>some menu content, could be list items</p>

<ion-nav #mycontent [root]="rootPage"></ion-nav>


my app.html

<ion-menu [content]="content" >

      <button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">


<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>


  <ion-navbar hideBackButton >
   <ion-title >One Share</ion-title>
    <ion-buttons end>
      <label> {{ firstParams }}
      <button ion-button full (click)="logout()">
        <ion-icon name="log-out"></ion-icon>
      <button ion-button  full (click)="crateVm()"><ion-icon name="cloud"></ion-icon>
      <button ion-button  full (click)="doAlert()"><ion-icon name="notifications-outline"></ion-icon>
        <!--<ion-icon name="cloud" full (click)="crateVm()"></ion-icon>-->
       <button menuToggle>
    <ion-icon name="menu"></ion-icon>

<ion-content padding>


i did like this but menu is not appearing on second page


On secondpage, put this button after ion-navbar: <button ion-button menuToggle icon-only item-left><ion-icon name="menu"></ion-icon></button>


Do you have the variable pages on app.component.ts? And what about the function openPage(p), is there too?


thanks a lot its working


it only works when url changes according to you component and page if url is changing then and only then side menu works fine please add segment in your import ionicPage then it works fine .

don’t know internal interration but this is the solution i found if you done the component of side menu still works if url changing or do setRoot as well .