angularjs - Range slider filter in ng-repeat (Angular Ranger) -


i'm using angular ranger v~0.1.3 in project. want filter ng-repeat according sliding event. tried methods nothing seems work. i'am providing code below. want filter ng-repeat on price

html

<angular-ranger min="30000" max="200000" step="1" min-value="value.min" max-value="value.max"></angular-ranger> <div ng-repeat="data in assets|filter:rangefilter">   property: {{data.name}}   price: {{data.price}} </div> 

controller

$scope.assets= data.assets; $scope.value = {     min: 30000,     max: 200000 }; 

i not expert in angular-ranger library took quick @ api , looks there no rangefilter filter exposed in it. works <angular-ranger> directive , values directly bound yours $scope.value.

what might worth trying put <angular-ranger> directive inside of ng-repeat , putting min, max on $scope.assets!

hope helps! :)


Comments