feat(bootstrap): changed bootstrap to return ComponentRef

This commit is contained in:
vsavkin
2015-04-10 10:09:16 -07:00
parent e295940833
commit 6f8fef4f13
6 changed files with 54 additions and 64 deletions

View File

@ -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);