feat(bootstrap): changed bootstrap to return ComponentRef
This commit is contained in:
@ -120,7 +120,8 @@ export function main() {
|
||||
function noop() {}
|
||||
|
||||
function initNg2() {
|
||||
bootstrap(AppComponent, createBindings()).then((injector) => {
|
||||
bootstrap(AppComponent, createBindings()).then((ref) => {
|
||||
var injector = ref.injector;
|
||||
lifeCycle = injector.get(LifeCycle);
|
||||
|
||||
app = injector.get(AppComponent);
|
||||
|
Reference in New Issue
Block a user