1
How to know which is the first item in a loop ngRepeat
?
For example, I want to add a class in a div, when it’s the first in the loop.
Example:
<div ng-repeat="name in ['guilherme', 'wallace', 'bigown', 'rray']" ng-class="{'bold' : se_for_o_primeiro_do_loop}">
</div>
Another negative? Would you kindly point out what is the problem with my question?
– Wallace Maxters