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

Function ɵɵelementEnd

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

Source from the content-addressed store, hash-verified

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