My dynamic table consists of the following:
<table id="thetable">
<tr>
<th class="th2"> Id </th>
<th class="th2"> Attivo </th>
<th class="th2"> Capacità </th>
<th class="th2"> Zona </th>
<th class="th2"> Stato </th>
</tr>
<tr style="cursor:pointer" ng-repeat="staffdispenser in staffdispensers">
<td ng-click="changePath(staffdispenser.dispenser.iddispenser)"> {{ staffdispenser.dispenser.iddispenser }}</td>
<td ng-click="changePath(staffdispenser.dispenser.iddispenser)"> {{ staffdispenser.dispenser.stateOn }}</td>
<td ng-click="changePath(staffdispenser.dispenser.iddispenser)"> {{ staffdispenser.dispenser.capacity.type }}</td>
<td ng-click="changePath(staffdispenser.dispenser.iddispenser)"> {{ staffdispenser.dispenser.geoArea.city }}</td>
<td ng-click="changePath(staffdispenser.dispenser.iddispenser)"> {{ (count[$index]*100)/(staffdispenser.dispenser.capacity.depthForSection*staffdispenser.dispenser.capacity.nsections) }}%</td>
</tr>
</table>
The purpose is to change the background of specific td elements within rows where "count[$index]100)/(staffdispenser.dispenser.capacity.depthForSectionstaffdispenser.dispenser.capacity.nsections)" is less than 0.5
This is a visualization of how I want it done:
https://i.sstatic.net/1Ba2o.png
I am aiming for a result similar to this: