xxxxxxxxxx
<div [ngStyle]="{'background-color':person.country === 'UK' ? 'green' : 'red' }"></<div>
xxxxxxxxxx
[ngStyle]="{'opacity': is_mail_sent ? '0.5' : '1' }"
[style.background-color]="myColorVaraible"
[ngStyle]="styleOne?{'background-color': 'red'} : {'background-color': 'blue'}"
<div [style.background-color]="style1 ? 'red' : (style2 ? 'blue' : null)">
xxxxxxxxxx
content_copy
<some-element [ngStyle]="{'font-style': styleExp}"></some-element>
xxxxxxxxxx
content_copy
<some-element [ngStyle]="{'max-width.px': widthExp}"></some-element>