Files
Brandy Carney 45e37ceb29 test(e2e): update all e2e tests to use a local path to ionic
this lets type errors to show up during development

closes #6366
2016-04-29 15:34:56 -04:00

36 lines
708 B
TypeScript

import {App, Page, NavController, MenuController} from '../../../../../ionic';
@Page({
templateUrl: 'page1.html'
})
class Page1 {
leftMenuSwipeEnabled: boolean = true;
rightMenuSwipeEnabled: boolean = false;
constructor(menu: MenuController) {
this.menu = menu;
}
toggleLeftMenuSwipeable() {
this.leftMenuSwipeEnabled = !this.leftMenuSwipeEnabled;
this.menu.swipeEnable(this.leftMenuSwipeEnabled, 'left');
}
toggleRightMenuSwipeable() {
this.rightMenuSwipeEnabled = !this.rightMenuSwipeEnabled;
this.menu.swipeEnable(this.rightMenuSwipeEnabled, 'right');
}
}
@App({
templateUrl: 'main.html'
})
class E2EApp {
constructor() {
this.rootView = Page1;
}
}