fix(ivy): project ng-container nodes (#25354)

PR Close #25354
This commit is contained in:
Pawel Kozlowski
2018-08-07 14:42:40 +02:00
committed by Kara Erickson
parent c6e5b971d6
commit af9ced9026
2 changed files with 95 additions and 1 deletions

View File

@ -708,6 +708,14 @@ export function appendProjectedNode(
for (let i = 0; i < views.length; i++) {
addRemoveViewFromContainer(node as LContainerNode, views[i], true, node.native);
}
} else if (node.tNode.type === TNodeType.ElementContainer) {
let ngContainerChild = getChildLNode(node as LElementContainerNode);
while (ngContainerChild) {
appendProjectedNode(
ngContainerChild as LElementNode | LElementContainerNode | LTextNode | LContainerNode,
currentParent, currentView, renderParent);
ngContainerChild = getNextLNode(ngContainerChild);
}
}
if (node.dynamicLContainerNode) {
node.dynamicLContainerNode.data[RENDER_PARENT] = renderParent;