I have a burning question to ask.
Here's the HTML code snippet:
ng-repeat="item in obj.Items | filter:someFilter"
And here's the JS code snippet:
$scope.someFilter = function (item) { ... }
It all works perfectly fine. However, I am faced with a challenge. I need to manually trigger the someFilter
function from within the controller.
Yes, I'm aware of using $filter("someFilter")(...)
, but the filter function requires an item object
from the ng-repeat
. So, the question is: how can I provide that argument?