Dynamically changing menu content without using events


#1

Can I access App components from a page or define menu in a page template. I am trying to avoid using events.


#2

Why not? I don’t think that it is depended from app class.


#3

Page template

<ion-menu id="left-menu" [content]="content">
      <ion-toolbar>
        <ion-title>Pages</ion-title>
      </ion-toolbar>
      <ion-content>
        <ion-list>
          <button ion-item >
            Login
          </button>
        </ion-list>
      </ion-content>
    </ion-menu>
<ion-navbar *navbar>
    <button menuToggle>
              <ion-icon name="menu"></ion-icon>   
     </button>
  <ion-title>Sample App</ion-title>
</ion-navbar>
<ion-content padding>

App template
<ion-nav id="nav" #content [root]="rootPage" ></ion-nav>

Sidebar swipe event doesnt work


#4

Couldnt find any examples, can you share a link