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

Function getProjectionNodes

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

Source from the content-addressed store, hash-verified

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

Callers 2

collectNativeNodesFunction · 0.90
getFirstNativeNodeFunction · 0.85

Calls 1

assertProjectionSlotsFunction · 0.90

Tested by

no test coverage detected