mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
docs(demos): update menu demo to use menuClose attribute
This commit is contained in:
@ -25,9 +25,6 @@ class E2EApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openPage(menu, page) {
|
openPage(menu, page) {
|
||||||
// close the menu when clicking a link from the menu
|
|
||||||
menu.close();
|
|
||||||
|
|
||||||
// Reset the content nav to have just this page
|
// Reset the content nav to have just this page
|
||||||
// we wouldn't want the back button to show in this scenario
|
// we wouldn't want the back button to show in this scenario
|
||||||
let nav = this.app.getComponent('nav');
|
let nav = this.app.getComponent('nav');
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<ion-list>
|
<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}}
|
{{p.title}}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user