ngClassOdd
(directive in module ng
)
The ngClassOdd and ngClassEven directives work exactly as
ngClass, except it works in
conjunction with ngRepeat and takes affect only on odd (even) rows.
This directive can be applied only within a scope of an
ngRepeat.
<ANY ng-class-odd="{expression}">
...
</ANY>
as class<ANY class="ng-class-odd: {expression};">
...
</ANY>
ngClassOdd – {expression} –
Expression to eval. The result of the evaluation can be a string representing space delimited class names or an array.