mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -40,6 +40,7 @@ class E2EApp {
|
||||
constructor(app: IonicApp) {
|
||||
this.app = app;
|
||||
this.rootView = Page1;
|
||||
this.changeDectionCount = 0;
|
||||
|
||||
this.pages = [
|
||||
{ title: 'Page 1', component: Page1 },
|
||||
@@ -62,4 +63,9 @@ class E2EApp {
|
||||
onMenuOpening(ev) {
|
||||
console.log('onMenuOpening', ev);
|
||||
}
|
||||
|
||||
isHidden() {
|
||||
console.log('Change detection', ++this.changeDectionCount);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{{p.title}}
|
||||
</button>
|
||||
|
||||
<button ion-item menuClose="leftMenu" detail-none>
|
||||
<button ion-item menuClose="leftMenu" detail-none [hidden]="isHidden()">
|
||||
Close Menu
|
||||
</button>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user