refactor(ivy): replace LView.child with TView.childIndex lookup (#24211)

PR Close #24211
This commit is contained in:
Kara Erickson
2018-05-30 13:43:14 -07:00
committed by Victor Berchet
parent 6a663a4073
commit 7e3f8f77a9
6 changed files with 53 additions and 29 deletions

View File

@ -590,7 +590,7 @@ export function getOrCreateContainerRef(di: LInjector): viewEngine_ViewContainer
lContainerNode.tNode = hostTNode.dynamicContainerNode;
vcRefHost.dynamicLContainerNode = lContainerNode;
addToViewTree(vcRefHost.view, lContainer);
addToViewTree(vcRefHost.view, hostTNode.index as number, lContainer);
di.viewContainerRef = new ViewContainerRef(lContainerNode);
}