Answers for "ngstyle angularjs conditional"

6

conditional style angular

<div [ngStyle]="{'color':employee.country === 'India' ? 'orange' : 'red' }"></<div>
Posted by: Guest on October-18-2020
0

ngstyle conditional

<div [ngStyle]="{'background-color': style1 ? 'red' : (style2 ? 'blue' : null) }">
Posted by: Guest on November-09-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language