ng-class="['even', 'odd'][$index %2]"
(in use in a <tr repeat.for="...">
)
Is it almost directly translateable, i.e. swap ng-class
with class
or is there another/better way? Or should these things perhaps be handled using CSS, e.g. tr:nth-child(odd)
?