Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 143 Bytes

add-dynamic-css-style-properties.md

File metadata and controls

7 lines (5 loc) · 143 Bytes

Add dynamic css style properties

variable is a dynamic field.

<div [ngStyle]="{'color': variable ? 'red' : 'blue'}"></div>