AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng class odd Directive

AngularJS ng-class-odd Directive

 

 

The ng-class-odd directive is used to dynamically bind one or more CSS classes to an HTML element. It will have an effect on every odd appearance of the HTML element. It will only work if it is used together with the ng-repeat directive.

 

Syntax:-

 

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

 

Further Explanation:-

 

Value Description
expression An expression that returns one or more class names.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS