MCPcopy Index your code
hub / github.com/angular/angular / ɵɵelementEnd

Function ɵɵelementEnd

packages/core/src/render3/instructions/element.ts:161–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 * @codeGenApi
160 */
161export function ɵɵelementEnd(): typeof ɵɵelementEnd {
162 const tView = getTView();
163 const initialTNode = getCurrentTNode()!;
164 ngDevMode && assertDefined(initialTNode, 'No parent node to close.');
165
166 const currentTNode = elementLikeEndShared(initialTNode);
167 ngDevMode && assertTNodeType(currentTNode, TNodeType.AnyRNode);
168
169 if (tView.firstCreatePass) {
170 directiveHostEndFirstCreatePass(tView, currentTNode);
171 }
172
173 if (isSkipHydrationRootTNode(currentTNode)) {
174 leaveSkipHydrationBlock();
175 }
176
177 decreaseElementDepthCount();
178
179 if (currentTNode.classesWithoutHost != null && hasClassInput(currentTNode)) {
180 setDirectiveInputsWhichShadowsStyling(
181 tView,
182 currentTNode,
183 getLView(),
184 currentTNode.classesWithoutHost,
185 true,
186 );
187 }
188
189 if (currentTNode.stylesWithoutHost != null && hasStyleInput(currentTNode)) {
190 setDirectiveInputsWhichShadowsStyling(
191 tView,
192 currentTNode,
193 getLView(),
194 currentTNode.stylesWithoutHost,
195 false,
196 );
197 }
198 return ɵɵelementEnd;
199}
200
201/**
202 * Creates an empty element using {@link elementStart} and {@link elementEnd}

Callers 4

conditionalTemplateFunction · 0.90
CompClass · 0.90
i18n_spec.tsFile · 0.85
ɵɵelementFunction · 0.85

Calls 13

getTViewFunction · 0.90
getCurrentTNodeFunction · 0.90
assertDefinedFunction · 0.90
elementLikeEndSharedFunction · 0.90
assertTNodeTypeFunction · 0.90
isSkipHydrationRootTNodeFunction · 0.90
leaveSkipHydrationBlockFunction · 0.90
hasClassInputFunction · 0.90
getLViewFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…