MCPcopy Create free account
hub / github.com/angular/angular / applyProjection

Function applyProjection

packages/core/src/render3/node_manipulation.ts:988–1001  ·  view source on GitHub ↗
(tView: TView, lView: LView, tProjectionNode: TProjectionNode)

Source from the content-addressed store, hash-verified

986 * @param tProjectionNode node to project
987 */
988export function applyProjection(tView: TView, lView: LView, tProjectionNode: TProjectionNode) {
989 const renderer = lView[RENDERER];
990 const parentRNode = getParentRElement(tView, tProjectionNode, lView);
991 const parentTNode = tProjectionNode.parent || lView[T_HOST]!;
992 let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);
993 applyProjectionRecursive(
994 renderer,
995 WalkTNodeTreeAction.Create,
996 lView,
997 tProjectionNode,
998 parentRNode,
999 beforeNode,
1000 );
1001}
1002
1003/**
1004 * `applyProjectionRecursive` performs operation on the projection specified by `action` (insert,

Callers 1

ɵɵprojectionFunction · 0.90

Calls 3

getParentRElementFunction · 0.85
getInsertInFrontOfRNodeFunction · 0.85
applyProjectionRecursiveFunction · 0.85

Tested by

no test coverage detected