mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
add nav basic root
This commit is contained in:
22
ionic/components/nav/test/basic/index.js
Normal file
22
ionic/components/nav/test/basic/index.js
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user