I know we can filter on ng-repeat element with this syntax:
<li ng-repeat="v in values() | filter:myFilter ">
where myFilter is a function with 1 parameter (the current element).
function myFilter(item){
console.log(item);
}
I know we can filter on ng-repeat passing objets as argument like this:
<li ng-repeat="v in values() | filter:myFilter(myVar) ">
function myFilter(word){
console.log(word);
}
But is there a way to have a filter for ng-repeat with current element + other parameters?
this doesn't work:
<li ng-repeat="v in values() | filter:myFilter(v, myVar) ">
thanks.