Description
The ng:class-odd
and ng:class-even
works exactly as
ng:class
, except it works in conjunction with ng:repeat
and takes affect only on odd (even) rows.
Dependencies
Usage
<ANY ng:class-even="expression">
...
</ANY>
Parameters
Example
<ol ng:init="names=['John', 'Mary', 'Cate', 'Suz']">
<li ng:repeat="name in names">
<span ng:class-odd="'ng-format-negative'"
ng:class-even="'ng-input-indicator-wait'">
{{name}}
</span>
</li>
</ol>