mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
23 lines
470 B
JavaScript
23 lines
470 B
JavaScript
import {Component, onInit} from 'angular2/src/core/annotations_impl/annotations';
|
|
|
|
import {IonicView, IonicConfig} from 'ionic/ionic';
|
|
import {FirstPage} from './pages/first-page'
|
|
|
|
|
|
@Component({
|
|
selector: 'ion-app'
|
|
})
|
|
@IonicView({
|
|
template: '<ion-nav [root]="rootView"></ion-nav>'
|
|
})
|
|
class MyApp {
|
|
constructor() {
|
|
this.rootView = FirstPage;
|
|
}
|
|
}
|
|
|
|
export function main(ionicBootstrap) {
|
|
let myConfig = new IonicConfig();
|
|
ionicBootstrap(MyApp, myConfig);
|
|
}
|