I have an array of objects that I\'m displaying in my Angular app using ng-repeat. I\'m filtering out items using filter and the value of a search
ng-repeat
filter
You can bind the filtered array to another scope variable in your view, then access that in your controller.
View:
...
Controller:
$scope.toggleAll = function () { angular.forEach($scope.filteredItems, function (item) { // do stuff }) }