ng style color in angular6 code example
Example: ngstyle
<div [ngStyle]="{'background-color':person.country === 'UK' ? 'green' : 'red' }"></<div>
<div [ngStyle]="{'background-color':person.country === 'UK' ? 'green' : 'red' }"></<div>