I'm using ng-repeat and trying to use the $index in a filter like this
<div data-ng-repeat="i in [1,2,3,4,5,6,7,8,9]">
<div ng-repeat="student in students | filter:{Surname:'Smith', Group: {{$index}}">
<span ng-click="updateStudent(student.StudentID)">{{student.FullName}}</span>
</div>
</div>
I'm getting a syntax error in the Chrome dev tools console. Is it possible to use $index like this?
I have also tried Group: $index without the braces
}at the end of thengRepeat}at the end, don't you meanfilter:{Surname:'Smith', Group: i}?