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

Function applyProjection

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

Source from the content-addressed store, hash-verified

962 * @param tProjectionNode node to project
963 */
964export function applyProjection(tView: TView, lView: LView, tProjectionNode: TProjectionNode) {
965 const renderer = lView[RENDERER];
966 const parentRNode = getParentRElement(tView, tProjectionNode, lView);
967 const parentTNode = tProjectionNode.parent || lView[T_HOST]!;
968 let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);
969 applyProjectionRecursive(
970 renderer,
971 WalkTNodeTreeAction.Create,
972 lView,
973 tProjectionNode,
974 parentRNode,
975 beforeNode,
976 );
977}
978
979/**
980 * `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