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

Function initializeElement

packages/core/src/render3/instructions/element.ts:131–153  ·  view source on GitHub ↗
(
  index: number,
  name: string,
  lView: LView,
  tNode: TElementNode,
  localRefsIndex: number | undefined,
)

Source from the content-addressed store, hash-verified

129}
130
131function initializeElement(
132 index: number,
133 name: string,
134 lView: LView,
135 tNode: TElementNode,
136 localRefsIndex: number | undefined,
137) {
138 elementLikeStartShared(tNode, lView, index, name, _locateOrCreateElementNode);
139
140 if (isDirectiveHost(tNode)) {
141 const tView = lView[TVIEW];
142 createDirectivesInstances(tView, lView, tNode);
143 executeContentQueries(tView, tNode, lView);
144 }
145
146 if (localRefsIndex != null) {
147 saveResolvedLocalsInData(lView, tNode);
148 }
149
150 if (ngDevMode && lView[TVIEW].firstCreatePass) {
151 validateElementIsKnown(lView, tNode);
152 }
153}
154
155/**
156 * Mark the end of the element.

Callers 1

ɵɵelementStartFunction · 0.85

Calls 6

elementLikeStartSharedFunction · 0.90
isDirectiveHostFunction · 0.90
executeContentQueriesFunction · 0.90
saveResolvedLocalsInDataFunction · 0.90
validateElementIsKnownFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…