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

Function setupStaticAttributes

packages/core/src/render3/dom_node_manipulation.ts:170–184  ·  view source on GitHub ↗
(renderer: Renderer, element: RElement, tNode: TNode)

Source from the content-addressed store, hash-verified

168
169/** Sets up the static DOM attributes on an `RNode`. */
170export function setupStaticAttributes(renderer: Renderer, element: RElement, tNode: TNode) {
171 const {mergedAttrs, classes, styles} = tNode;
172
173 if (mergedAttrs !== null) {
174 setUpAttributes(renderer, element, mergedAttrs);
175 }
176
177 if (classes !== null) {
178 writeDirectClass(renderer, element, classes);
179 }
180
181 if (styles !== null) {
182 writeDirectStyle(renderer, element, styles);
183 }
184}

Callers 2

createComponentRefMethod · 0.90
elementLikeStartSharedFunction · 0.90

Calls 3

setUpAttributesFunction · 0.90
writeDirectClassFunction · 0.85
writeDirectStyleFunction · 0.85

Tested by

no test coverage detected