I need to access data that was already filtered on a template (inside a ng-repeat) from my controller.
Here\'s what I mean:
I have this table in my template:
You can simplify your code with the following:
{{person.name}} {{person.gender}}
After that, you can get access to $scope.filteredPersons into controller or {{filteredPersons}} right into the view :)
$scope.filteredPersons
{{filteredPersons}}