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

Function ɵɵelementEnd

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

Source from the content-addressed store, hash-verified

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