Is it possible to dynamically change the background of a table cell in HTML using AngularJS?
In this scenario, I am aiming to display a table containing different names along with the status of an object. The status can either be VALID
(displayed with a green background) or INVALID
(displayed with a red background).
Can this issue be resolved directly within the <td>
tag in HTML, or is it necessary to utilize CSS?
<table border="1">
<tr ng-repeat="object in Cmd.items">
<td>{{object.objectName}}</td>
<td>{{object.objectStatus}}</td> //the background color here should vary
</tr>
</table>