Using ng-repeat and ng-class on rows inside a table

This should actually work fine. Person should be available on the tr element as well as on its children since they share the same scope.

This seems to work fine for me:

<table>
    <tr ng-repeat="person in people" ng-class="rowClass(person)">
        <td>{{ person.name }}</td>
    </tr>
</table>

http://jsfiddle.net/xEyJZ/

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)