So I have a simple ng-repeat and what I want to do is, if the p.product_quantity < 10, the background color will be red. Here is my code:
<tr ng-repeat="p in products" style="background-color: red">
<td>{{p.product_code}}</td>
<td>{{p.product_name}}</td>
<td>{{p.product_quantity}}</td>
</tr>
As you can see with that code, all of the rows will be red. How can I perform an if inside the <tr>? Any help would be much appreciated.