<div ng-repeat="widget in widgets"
ng-class="">
<div>{{widget.row}}</div>
</div>
I'm trying to apply a class inside the repeat based on a particular value in the repeat, for example if widget.row = 0
and it is the first widget with that value displayed then give it a class and all the other widgets that have row as 0
do not get the class. This will need to be the case if it equals 1
or 2
and so on so I can't just use $first
as there will be multiple row values and multiple widgets for example it may output something like:
0 0 0 0 1 1 2 2 2 2