MCPcopy Index your code
hub / github.com/angular/angular / setupStaticAttributes

Function setupStaticAttributes

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

Source from the content-addressed store, hash-verified

139
140/** Sets up the static DOM attributes on an `RNode`. */
141export function setupStaticAttributes(renderer: Renderer, element: RElement, tNode: TNode) {
142 const {mergedAttrs, classes, styles} = tNode;
143
144 if (mergedAttrs !== null) {
145 setUpAttributes(renderer, element, mergedAttrs);
146 }
147
148 if (classes !== null) {
149 writeDirectClass(renderer, element, classes);
150 }
151
152 if (styles !== null) {
153 writeDirectStyle(renderer, element, styles);
154 }
155}

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…