docs(demos): update menu demo to use menuClose attribute

This commit is contained in:
Brandy Carney
2016-01-28 10:52:42 -05:00
parent eb03159d08
commit e7fe7e4a1f
2 changed files with 1 additions and 4 deletions

View File

@ -25,9 +25,6 @@ class E2EApp {
}
openPage(menu, page) {
// close the menu when clicking a link from the menu
menu.close();
// Reset the content nav to have just this page
// we wouldn't want the back button to show in this scenario
let nav = this.app.getComponent('nav');

View File

@ -8,7 +8,7 @@
<ion-list>
<button ion-item *ngFor="#p of pages" (click)="openPage(menu, p)">
<button ion-item menuClose *ngFor="#p of pages" (click)="openPage(menu, p)">
{{p.title}}
</button>