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

Function getProjectionNodes

packages/core/src/render3/node_manipulation.ts:723–732  ·  view source on GitHub ↗
(lView: LView, tNode: TNode | null)

Source from the content-addressed store, hash-verified

721}
722
723export function getProjectionNodes(lView: LView, tNode: TNode | null): TNode | RNode[] | null {
724 if (tNode !== null) {
725 const componentView = lView[DECLARATION_COMPONENT_VIEW];
726 const componentHost = componentView[T_HOST] as TElementNode;
727 const slotIdx = tNode.projection as number;
728 ngDevMode && assertProjectionSlots(lView);
729 return componentHost.projection![slotIdx];
730 }
731 return null;
732}
733
734export function getBeforeNodeForView(
735 viewIndexInContainer: number,

Callers 2

collectNativeNodesFunction · 0.90
getFirstNativeNodeFunction · 0.85

Calls 1

assertProjectionSlotsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…