Open bhtw opened 7 years ago
Hi
I am creating a table where data in some cells are compared. If they are equal, I want that cell text to be green, else red. How is it possible to set individual text colour on a cell?
Thanks
Hey. Does it answer your question? <td md-cell> <span ng-class="{ 'warning-text': item.num1 < item.num2 }" ng-bind="item.num3"></span> </td>
<td md-cell>
<span ng-class="{ 'warning-text': item.num1 < item.num2 }" ng-bind="item.num3"></span>
</td>
Hi
I am creating a table where data in some cells are compared. If they are equal, I want that cell text to be green, else red. How is it possible to set individual text colour on a cell?
Thanks