What it does
Update an HTML element styles.
How to use
Class Overview
class NgStyle implements DoCheck {
constructor
(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer)
}
Selectors
[ngStyle]
Class Description
The styles are updated according to the value of the expression evaluation:
- keys are style names with an optional
.<unit>
suffix (ie 'top.px', 'font-style.em'), - values are the values assigned to those properties (expressed in the given unit).
exported from @angular/common/index, defined in @angular/common/src/directives/ng_style.ts