I have this:
<div class="row" ng-repeat="(promptId, q) in (categoryFilteredObj
= (categoryObj | custom:searchText:selectAllCheckbox:answeredCheckbox))">
Everything is working fine.
But the filter only seems to be invoked when the searchText
changes.
How can I force the filter to be evaluated? I could change searchText "artificially", but that wouldn't be the right way to do it.
I would hope that if I change the values for -
selectAllCheckbox
or
answeredCheckbox
that the filter would be re-evaluated, but that does not appear to be the case!
In other words: what I am looking to do is re-invoke this ng-repeat functionality, so that the filter gets re-evaluated, because I have just made changes to the state in my program, and I want the list of objects to change to reflect the state change. Currently, however, the ng-repeat list does not change and the filter does not get hit (I checked the logs). I'd like to somehow "force" the ng-repeat and filter to be re-evaluated. I don't think $scope.$apply()
works for this.