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

Method updateStyles

packages/core/test/acceptance/styling_spec.ts:2178–2182  ·  view source on GitHub ↗
(prop: string, value: string | number | null)

Source from the content-addressed store, hash-verified

2176
2177 public s = signal<{[key: string]: any} | null>(null);
2178 updateStyles(prop: string, value: string | number | null) {
2179 const s = {...(this.s() || {})};
2180 Object.assign(s, {[prop]: value});
2181 this.s.set(s);
2182 }
2183
2184 reset() {
2185 this.s.set(null);

Callers 1

styling_spec.tsFile · 0.80

Calls 1

setMethod · 0.65

Tested by

no test coverage detected