我正在对ng-repeat标签应用大于过滤器.我写了以下自定义过滤功能:
$scope.priceRangeFilter = function (location) {
return location.price >= $scope.minPrice;
};
Run Code Online (Sandbox Code Playgroud)
我在以下HTML代码中使用它:
<div ng-repeat="m in map.markers | filter:priceRangeFilter">
Run Code Online (Sandbox Code Playgroud)
当$ scope.minPrice更新时,触发ng-repeat标记刷新的最佳方法是什么?