mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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) {
|
||||
// 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');
|
||||
|
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user