mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
provide ionicBootstrap
This commit is contained in:
@ -78,7 +78,7 @@ export function load(app) {
|
|||||||
console.error('App module missing main()');
|
console.error('App module missing main()');
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
app.main();
|
app.main(ionicBootstrap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {Component, Directive, onInit} from 'angular2/src/core/annotations_impl/annotations';
|
import {Component, Directive, onInit} from 'angular2/src/core/annotations_impl/annotations';
|
||||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||||
|
|
||||||
import {ionicBootstrap, IonicConfig} from 'ionic/ionic';
|
import {IonicConfig} from 'ionic/ionic';
|
||||||
import {Nav, NavPush, NavPop, NavParams, Routable, Router, NavController, NavbarTemplate, Navbar, NavPush, Content} from 'ionic/ionic';
|
import {Nav, NavPush, NavPop, NavParams, Routable, Router, NavController, NavbarTemplate, Navbar, NavPush, Content} from 'ionic/ionic';
|
||||||
|
|
||||||
import {SecondPage} from './pages/second-page'
|
import {SecondPage} from './pages/second-page'
|
||||||
@ -103,7 +103,7 @@ new Routable(FirstPage, {
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
export function main() {
|
export function main(ionicBootstrap) {
|
||||||
let myConfig = new IonicConfig();
|
let myConfig = new IonicConfig();
|
||||||
|
|
||||||
ionicBootstrap(FirstPage, myConfig);
|
ionicBootstrap(FirstPage, myConfig);
|
||||||
|
Reference in New Issue
Block a user