I am trying to develop a very general output from a table - no number of rows or columns specified. Thus, I have ng-repeat nested attributes, as such:
<table> <tr ng-repeat="row in rowList"> <td ng-repeat="col in colList">{{printCell(row,col)}}</td> </tr> </table>
It works great! Until I try to use ng-class-even and ng-class-odd to change the background color of the strings accordingly.
If I put the ng-class-*** operators in the td tag, I get the column color variables.
If I put the ng-class-*** operators in the tr tag, I don't get any class assignment - they all remain by default.
I need string color variables. How should I do it?
EDIT:
Please delete this, anyone? Turns out the problem was that my css classes indicated that the class was installed on the td tag.
javascript angularjs nested angularjs-ng-repeat
Wolfman Joe Sep 10 '13 at 17:56 on 2013-09-10 17:56
source share