fix(menu): run gestures outside of zone

Closes #755
This commit is contained in:
Adam Bradley
2015-12-18 10:58:08 -06:00
parent 829442dffe
commit c118009a7c
3 changed files with 23 additions and 17 deletions

View File

@@ -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;
}
}

View File

@@ -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>