import {Component} from 'angular2/src/core/annotations_impl/annotations';
import {IonicView} from 'ionic/ionic';
@Component({ selector: 'ion-app' })
@IonicView({
templateUrl: 'main.html'
})
class IonicApp {
constructor() {
this.root = TabsPage;
}
}
@Component({selector: 'ion-view'})
@IonicView({
template: '' +
'' +
'Home' +
'' +
'' +
''
})
class HomeTabPage {
constructor(nav: NavController) {
this.nav = nav;
console.log('Initi');
}
push() {
}
}
@Component({selector: 'ion-view'})
@IonicView({
template: `
`
})
class TabsPage {
constructor() {
this.firstTabPage = HomeTabPage;
}
}
export function main(ionicBootstrap) {
ionicBootstrap(IonicApp);
}