Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

add class based on value in angularjs

<tr ng-repeat="scores in Test" ng-class="{true: 'warning', false: 'ok'}[scores.Indicator == 'Negative']">                       
     <td>Overall: {{ scores.Indicator }}</td>
</tr>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #class #based #angularjs
ADD COMMENT
Topic
Name
4+9 =