Answers for "ngstyle conditional angular 13"

6

conditional style angular

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

ngstyle conditional

<div [style.background-color]="style1 ? 'red' : (style2 ? 'blue' : null)">
Posted by: Guest on December-20-2021
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