From e4070428ae1163796e5a70d887dbad03bb2df3ff Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 26 Jun 2015 17:35:11 -0500 Subject: [PATCH] move prepareReady to before bootstrap --- ionic/components/app/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ionic/components/app/app.js b/ionic/components/app/app.js index 47fbe90463..8bcfc56bc5 100644 --- a/ionic/components/app/app.js +++ b/ionic/components/app/app.js @@ -153,7 +153,10 @@ export function ionicBootstrap(ComponentType, config) { // config and platform settings have been figured out // apply the correct CSS to the app - app.applyCss(document.body, Platform, config) + app.applyCss(document.body, Platform, config); + + // prepare the ready promise to fire....when ready + Platform.prepareReady(config); // add injectables that will be available to all child components let injectableBindings = [ @@ -164,9 +167,6 @@ export function ionicBootstrap(ComponentType, config) { bootstrap(ComponentType, injectableBindings).then(appRef => { app.ref(appRef); - // prepare the ready promise to fire....when ready - Platform.prepareReady(config); - // resolve that the app has loaded resolve(app);