Home » AngularJS ng-class event Directive

AngularJS ng-class event Directive

by Online Tutorials Library

AngularJS ng-class-even Directive

The AngularJS ng-class-even directive works exactly same as ng-class, but it is used together with ng-repeat and take effect only on even rows.

Note: It is a perfect directive for styling items in a list or rows in a table. It is supported by all HTML elements.

Syntax:

Parameter explanation:

expression: It specifies an expression that returns one or more class names.

Let’s take an example to demonstrate ng-class-even directive.

See this example:

Test it Now

You may also like