How do I know what the first item in a ngRepeat
loop is?
For example, I want to add a class to a div when it is the first of the loop.
Example:
<div ng-repeat="name in ['guilherme', 'wallace', 'bigown', 'rray']" ng-class="{'bold' : se_for_o_primeiro_do_loop}">
</div>