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

Function applyProjection

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

Source from the content-addressed store, hash-verified

987 * @param tProjectionNode node to project
988 */
989export function applyProjection(tView: TView, lView: LView, tProjectionNode: TProjectionNode) {
990 const renderer = lView[RENDERER];
991 const parentRNode = getParentRElement(tView, tProjectionNode, lView);
992 const parentTNode = tProjectionNode.parent || lView[T_HOST]!;
993 let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);
994 applyProjectionRecursive(
995 renderer,
996 WalkTNodeTreeAction.Create,
997 lView,
998 tProjectionNode,
999 parentRNode,
1000 beforeNode,
1001 );
1002}
1003
1004/**
1005 * `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