Cell specific table styling with ng-class and ng-repeat

39 views Asked by At

I am trying to apply cell-level styling to a table with ng-reapt and ng-class.

This is what I am trying to do:

   <tr ng-repeat="transaction in transactionsArr" class="no-top-border">
        <td ng-class="{{transaction.cellstyle}}">{{transaction.Reason}}</td>
        <td class="align-right">{{transaction.account}}</td>
        <td class="align-right">{{transaction.Amount| number:0}}</td>
        <td class="align-right">{{transaction.Balance| number:0}}</td>
    </tr>

However I am getting errors with this. I have looked at this question but it is not working.

Is this not possible to apply specific styling each entry with ng-repeat?

Thank you.

0

There are 0 answers