I have a table where I need to set different colors based on the values in one of the columns. I've successfully managed to set two colors using NgClass, but I'm unsure how to set up three different conditions.
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<tr ng-class="{{project.total >= 0}} ? 'danger':'success'">
<td>
{{project.total}}
</td>
</tr>
I want to set up three conditions based on the 'total' column values: if total is less than 35, the color should be red; if it's between 35 and 70, it should be yellow; and if it's above 70, it should be green. How can I achieve this using Angular? Keep in mind, I am very new to Angular.