refactor(core): view engine, refactor runtime data

Structure in a better way, in preparation for queries.
This commit is contained in:
Tobias Bosch
2017-01-23 10:23:44 -08:00
committed by Victor Berchet
parent 05b2b49711
commit fc8694ed11
11 changed files with 74 additions and 66 deletions

View File

@ -84,8 +84,8 @@ export class AppModule {
}
bootstrap() {
this.rootView = createRootView(new DefaultServices(null, this.sanitizer), TreeComponent_Host);
this.rootComp = this.rootView.nodes[1].provider;
this.rootEl = this.rootView.nodes[0].renderNode;
this.rootComp = this.rootView.nodes[1].provider.instance;
this.rootEl = this.rootView.nodes[0].elementOrText.node;
}
tick() { checkAndUpdateView(this.rootView); }
}