DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+6 =
Submit