Using AngularJS, I want the background color of a table cell to depend on the value. This works, is it the most efficient way? I have several tables and my example only shows three score types, but I actually need to base the formatting on 15 types.
<td data-ng-repeat="score in scoreTypes"
ng-class="{vGood: score.score_type == '3',
good: score.score_type == '10',
avg: score.score_type == '12'}">{{score.score_type}}</td>