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

Function initializeElement

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

Source from the content-addressed store, hash-verified

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