Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<span class="dot" style="background-color:{{PopupDetails.StatusId=1 ? 'Green' : (PopupDetails.StatusId=2 ? 'Yellow' : PopupDetails.StatusId=3 ? 'Red' :PopupDetails.StatusId=4 ? 'Blue' :PopupDetails.StatusId=5 ? 'Gray' : '')}} "></span>


What I have tried:

i tried in chrome its working good and when i tried to access from IE and background color is not working
Posted
Comments
sagar.panuganti 19-Mar-19 1:13am    
which version on IE you are using?
Chinnu2020 19-Mar-19 6:09am    
IE 11
Richard Deeming 21-Mar-19 12:32pm    
Have you tried using == (or even ===) in your conditions, instead of =? I'm not overly familiar with Angular, but in Javascript a single = is the assignment operator, not the equality operator.
{{PopupDetails.StatusId === 1 ? 'Green' : ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900