MCPcopy Create free account
hub / github.com/angular/angular / ɵɵelementEnd

Function ɵɵelementEnd

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

Source from the content-addressed store, hash-verified

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

Callers 10

createFnFunction · 0.90
iconTemplateFunction · 0.90
descriptionTemplateFunction · 0.90
childrenTemplateFunction · 0.90
itemTemplateFunction · 0.90
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