I suggest you use the $ filter service in your controller, as shown in this plunk example :
$scope.evenNumbers = $filter('filter')($scope.numbers, $scope.isEven);
In your case:
var $scope.filteredRows = $filter('filter')($scope.gridData, $scope.isQuestionInRange);
This way you filter only once and avoid entering new scope fields into the template, which makes your code difficult to test and understand.
You repeat over filteredRows in your template, and {{ filteredRows.length }} shows the number of visible lines.
lex82
source share