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

Function getProjectionNodes

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

Source from the content-addressed store, hash-verified

752}
753
754export function getProjectionNodes(lView: LView, tNode: TNode | null): TNode | RNode[] | null {
755 if (tNode !== null) {
756 const componentView = lView[DECLARATION_COMPONENT_VIEW];
757 const componentHost = componentView[T_HOST] as TElementNode;
758 const slotIdx = tNode.projection as number;
759 ngDevMode && assertProjectionSlots(lView);
760 return componentHost.projection![slotIdx];
761 }
762 return null;
763}
764
765export function getBeforeNodeForView(
766 viewIndexInContainer: number,

Callers 2

collectNativeNodesFunction · 0.90
getFirstNativeNodeFunction · 0.85

Calls 1

assertProjectionSlotsFunction · 0.90

Tested by

no test coverage detected