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

Function getProjectionNodes

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

Source from the content-addressed store, hash-verified

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

Callers 2

collectNativeNodesFunction · 0.90
getFirstNativeNodeFunction · 0.85

Calls 1

assertProjectionSlotsFunction · 0.90

Tested by

no test coverage detected