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

28 lines
549 B
TypeScript

import {App, IonicApp, Page} from '../../../../../ionic';
@Page({templateUrl: 'page1.html'})
class Page1 {}
@App({
templateUrl: 'main.html'
})
class E2EApp {
constructor(app: IonicApp) {
this.app = app;
this.rootView = Page1;
}
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');
nav.setRoot(page.component);
}
}