perf(compiler): introduce direct rendering

This allows to attach / detach embedded views and projected nodes
in a faster way.
This commit is contained in:
Tobias Bosch
2016-11-02 17:54:05 -07:00
committed by vikerman
parent d708a8859c
commit 9c23884da4
9 changed files with 211 additions and 20 deletions

View File

@ -89,6 +89,7 @@ export class DebugDomRenderer implements Renderer {
}
destroyView(hostElement: any, viewAllNodes: any[]) {
viewAllNodes = viewAllNodes || [];
viewAllNodes.forEach((node) => { removeDebugNodeFromIndex(getDebugNode(node)); });
this._delegate.destroyView(hostElement, viewAllNodes);
}