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

Function initializeElement

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

Source from the content-addressed store, hash-verified

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