Answers for "ng class background color angular 6"

6

ngstyle

<div [ngStyle]="{'background-color':person.country === 'UK' ? 'green' : 'red' }"></<div>
Posted by: Guest on August-08-2020

Browse Popular Code Answers by Language