My current code looks like this:
<div class="vision" ng-class="data.quote > 0 ? 'blue-rapid' : 'gray-rapid'"></div>
While the above code is easy to understand, I encountered a scenario where data.quote could be equal to 0
.
In an attempt to handle this scenario, I modified the code as follows:
<div class="vision" ng-class="data.quote > 0 ? 'blue-rapid' :
(data.quote == 0 ? 'black_rapid' : 'gray-rapid')"></div>
Despite my efforts, it didn't yield the desired outcome.
Can anyone offer some guidance on how to tackle this issue?
Thank you.