mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
@ -417,4 +417,6 @@ class E2EApp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ionicBootstrap(E2EApp);
|
ionicBootstrap(E2EApp).then((componetRef) => {
|
||||||
|
console.log('ionicBootstrap', componetRef);
|
||||||
|
});
|
||||||
|
@ -35,11 +35,14 @@ export function ionicBootstrap(appRootComponent: any, customProviders?: Array<an
|
|||||||
let providers = ionicProviders(customProviders, config);
|
let providers = ionicProviders(customProviders, config);
|
||||||
providers.push({provide: UserComponent, useValue: appRootComponent});
|
providers.push({provide: UserComponent, useValue: appRootComponent});
|
||||||
|
|
||||||
cssReady(() => {
|
return new Promise((resolve) => {
|
||||||
// call angular bootstrap
|
cssReady(() => {
|
||||||
bootstrap(AppRoot, providers).then(ngComponentRef => {
|
// call angular bootstrap
|
||||||
// ionic app has finished bootstrapping
|
bootstrap(AppRoot, providers).then(ngComponentRef => {
|
||||||
ionicPostBootstrap(ngComponentRef);
|
// ionic app has finished bootstrapping
|
||||||
|
ionicPostBootstrap(ngComponentRef);
|
||||||
|
resolve(ngComponentRef);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user