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

Function initializeElement

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

Source from the content-addressed store, hash-verified

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