e2e toggle menu

This commit is contained in:
Adam Bradley
2015-07-28 09:26:48 -05:00
parent 85df32d0b7
commit 580d19040e
3 changed files with 11 additions and 4 deletions

View File

@@ -52,7 +52,8 @@ export class Aside extends Ion {
})
}
onIonInit() {
onInit() {
super.onInit();
this.contentElement = (this.content instanceof Node) ? this.content : this.content.getNativeElement();
this.gestureDelegate = this.getDelegate('gesture');

View File

@@ -1,13 +1,18 @@
import {App} from 'ionic/ionic';
import {App, IonicApp} from 'ionic/ionic';
@App({
templateUrl: 'main.html'
})
class IonicApp {
class E2EApp {
constructor(app: IonicApp) {
this.app = app;
}
toggleAside() {
console.log('toggleAside')
this.app.getComponent('mainMenu').toggle();
}
}

View File

@@ -1,5 +1,6 @@
<ion-view>
<ion-aside [content]="content">
<ion-aside #aside [content]="content" [register]="aside" register-id="mainMenu">
<ion-list inset>
<ion-item>
About