Answers for "ngstyle angular 10"

6

ngstyle

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

ngStyle

<div [ngStyle]="{'background-color':'green'}"></<div>
Posted by: Guest on July-09-2021

Browse Popular Code Answers by Language