In angularJS I want to show negative number as red and positive as green.
I would like to apply a conditional CSS with ng-class. How do I check that number is negative?
<span ng-class="{true:'ok',false:'ko'}[number == ?what should I check?]">
<b>Trend:</b>{{number}}
</span>