I already have the pagination implemented. Now I want the pagination to be updated after filtering my results.
The form:
Use angular $scope.$watch
$scope.$watch
$scope.$watch('search', function(term) { $scope.filter = function() { $scope.noOfPages = Math.ceil($scope.filtered.length/$scope.entryLimit); } });
Source ; http://jsfiddle.net/eqCWL/2/
Demo ; http://jsfiddle.net/eqCWL/192/