In my table, I need to implement two different classes using expressions. The first class is determined by the expression:
{'Up':'class-up', 'Down':'class-down'}[a.status]
and the second class is determined by bold: !a.read
The classes available are class-up
, class-down
, bold
. So how should I structure the expression? I attempted:
<tr ng-repeat="a in all" ng-class="{{'Up':'class-up', 'Down':'class-down'}[a.status],bold: !a.read}">
<tr ng-repeat="a in all" ng-class="{'Up':'class-up', 'Down':'class-down'}[a.status],bold: !a.read">
However, I am encountering errors in the console. What is the correct format to apply these classes based on the provided expressions?