WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-class-even Directive


Example

Set class="striped" for each other (even) table row:

<table ng-controller="myCtrl">
<tr ng-repeat="x in records" ng-class-even="'striped'">
    <td>{{x.Name}}</td>
    <td>{{x.Country}}</td>
</tr>
</table>
Try it yourself »

Definition and Usage

The ng-class-even mandate progressively ties at least one CSS classes to a HTML component, yet will produce results just on each other (even) appearence of the HTML element.

The ng-class-even mandate will possibly work on the off chance that it is utilized together with the ng-repeat directive.

The ng-class-even order is ideal for styling things in a rundown or lines in a table, however it tends to be utilized on any HTML element.


Syntax

<element ng-class-even="expression"></element>

Supported by all HTML elements.


Parameter Values

Value Description
expression An articulation that profits at least one class names.