import {Component} from 'angular2/src/core/annotations_impl/annotations';
import {IonicView, NavController} from 'ionic/ionic';
@Component({ selector: 'ion-app' })
@IonicView({
templateUrl: 'main.html'
})
class IonicApp {
constructor() {
this.root = TabsPage;
}
}
@Component({selector: 'ion-view'})
@IonicView({
template: '' +
'' +
'Home' +
'' +
'' +
'home' +
''
})
class HomeTabPage {
constructor(nav: NavController) {
this.nav = nav;
}
push() {
}
}
@Component({selector: 'ion-view'})
@IonicView({
template: '' +
'' +
'Peek' +
'' +
'' +
'peek' +
''
})
class PeekTabPage {
constructor(nav: NavController) {
this.nav = nav;
}
push() {
}
}
@Component({selector: 'ion-view'})
@IonicView({
templateUrl: 'tabs.html'
})
class TabsPage {
constructor() {
this.homeTab = HomeTabPage;
this.peekTab = PeekTabPage;
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}