139
rated 0 times
[
140]
[
1]
/ answers: 1 / hits: 18585
/ 11 Years ago, wed, july 31, 2013, 12:00:00
I'm applying a greater than filter to a ng-repeat tag. I wrote the following custom filter function:
$scope.priceRangeFilter = function (location) {
return location.price >= $scope.minPrice;
};
and I use it in the following HTML code:
<div ng-repeat=m in map.markers | filter:priceRangeFilter>
What is the best way to trigger a refresh of the ng-repeat tag when $scope.minPrice is updated?
More From » angularjs