Answers for "angular conditional style ngstyle"

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

Code answers related to "TypeScript"

Browse Popular Code Answers by Language