MCPcopy Create free account
hub / github.com/angular/components / _setStyle

Method _setStyle

src/material/grid-list/grid-tile.ts:67–69  ·  view source on GitHub ↗

* Sets the style of the grid-tile element. Needs to be set manually to avoid * "Changed after checked" errors that would occur with HostBinding.

(property: string, value: any)

Source from the content-addressed store, hash-verified

65 * "Changed after checked" errors that would occur with HostBinding.
66 */
67 _setStyle(property: string, value: any): void {
68 (this._element.nativeElement.style as any)[property] = value;
69 }
70}
71
72@Component({

Callers 7

setColStylesFunction · 0.80
setRowStylesMethod · 0.80
resetMethod · 0.80
setRowStylesMethod · 0.80
resetMethod · 0.80
setRowStylesMethod · 0.80
resetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected