How to handle ion-menu's ion-list item click event (ionic 2)?


i found new ionic 2 side menu from docs

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

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

but there isn’t any thing for item click event and changing about root page according to item click.can any one help me here.


Hi there!

So you should check out the sidemenu starter

ionic start myApp sidemenu --v2 --ts

This will show you have to set things up.


Its working now.Thanks.


How to scroll item list in ionic 2 ,below is my code please help me.


    <ion-navbar color="primary">
        <!--<ion-scroll scrollY="true">-->
        <ion-title>Main Home Page</ion-title>


        <button menuClose ion-item color="inputcolor" *ngFor="let g of gs" (click)="openPage(g)">
      Beverages  : {{ g }}