Currently expanding my knowledge on angular and exploring the capabilities of the ngClass directive. I have come across this interesting functionality:
<li ng-repeat="language in languages" ng-class="{line:$even}">{{language}}</li>
Alternatively, achieving a similar result using CSS selectors:
li:nth-child(even) {
// some css code here
}
Which approach do you think is more efficient?