Files
2015-10-31 15:02:59 -05:00

34 lines
642 B
TypeScript

import {App, IonicApp, Page, NavController} from 'ionic/ionic';
@Page({
templateUrl: 'page1.html'
})
class Page1 {
constructor(app: IonicApp) {
this.app = app;
this.menu1Active();
}
menu1Active() {
this.activeMenu = 'menu1';
this.app.getComponent('menu1').enable(true);
this.app.getComponent('menu2').enable(false);
}
menu2Active() {
this.activeMenu = 'menu2';
this.app.getComponent('menu1').enable(false);
this.app.getComponent('menu2').enable(true);
}
}
@App({
templateUrl: 'main.html'
})
class E2EApp {
constructor(app: IonicApp) {
this.app = app;
this.rootPage = Page1;
}
}