MCPcopy Index your code
hub / github.com/angular/angular / applyProjection

Function applyProjection

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

Source from the content-addressed store, hash-verified

909 * @param tProjectionNode node to project
910 */
911export function applyProjection(tView: TView, lView: LView, tProjectionNode: TProjectionNode) {
912 const renderer = lView[RENDERER];
913 const parentRNode = getParentRElement(tView, tProjectionNode, lView);
914 const parentTNode = tProjectionNode.parent || lView[T_HOST]!;
915 let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);
916 applyProjectionRecursive(
917 renderer,
918 WalkTNodeTreeAction.Create,
919 lView,
920 tProjectionNode,
921 parentRNode,
922 beforeNode,
923 );
924}
925
926/**
927 * `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

Used in the wild real call sites across dependent graphs

searching dependent graphs…