Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

conditional style angular

<div [ngStyle]="{'color':employee.country === 'India' ? 'orange' : 'red' }"></<div>
Source by www.aanchalgarg.com #
 
PREVIOUS NEXT
Tagged: #conditional #style #angular
ADD COMMENT
Topic
Name
2+1 =