How to assign alternate class to rows in angular js?
Answer / Pooja Khewal
To assign alternate classes to rows in AngularJS, you can use the `ng-repeat` directive and a counter variable. Here is an example:nn```htmln<tr ng-repeat="item in items track by $index" ng-class="{ 'odd': $index % 2 === 0, 'even': $index % 2 !== 0 }">...</tr>n```
| Is This Answer Correct ? | 0 Yes | 0 No |
What about auto bootstrap process in angular js?
Write a code to upload an image in angularjs?
How to write expression in angularjs?
What is inject in angular?
What are filters? Explain different filters provided by angularjs?
Is angularjs a factory singleton?
what is the difference between constructor and ngoninit?
What is async pipe?
What is angular mainly used for?
What is class binding in angular?
How to use filter in angular js?
How to starting angular 4 apps using ionic 3 cli commands?