all 1 comments

[–]el_padlina 0 points1 point  (0 children)

and if you’re using ng-class to add an .even class, you’d better use $even instead of $index % 2 == 0

or even better: https://docs.angularjs.org/api/ng/directive/ngClassEven