angular code ngstyle code example
Example 1: ngstyle
<some-element [ngStyle]="{'font-style': styleExp}">...</some-element>
Example 2: ngstyle
content_copy
<some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
<some-element [ngStyle]="{'font-style': styleExp}">...</some-element>
content_copy
<some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>