It must be automatic. When $scope.minPrice relay will automatically update.
function Ctrl($scope, $timeout) { $scope.map = [{ name: 'map1', price: 1 }, { name: 'map2', price: 2 }, { name: 'map3', price: 3 }]; $scope.minPrice = 0; $scope.priceRangeFilter = function (location) { return location.price >= $scope.minPrice; }; $timeout(function () { $scope.minPrice = 1.5; }, 2000); }
Demo on jsFiddle
zsong source share