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

@ -142,7 +142,8 @@ export function main() {
function noop() {}
function initNg2() {
bootstrap(AppComponent, _createBindings()).then((injector) => {
bootstrap(AppComponent, _createBindings()).then((ref) => {
var injector = ref.injector;
app = injector.get(AppComponent);
lifecycle = injector.get(LifeCycle);
bindAction('#ng2DestroyDom', ng2DestroyDom);