How can I filter on ng-repeat with multiple filters on OR?
<div ng-repeat="account in accounts | filter: searchText | filter: functionFilter" >
...
</div>
I want that searchText filter with all fields and it do that, with functionFilter I want check other things and it do that, but I want these two filters working with logial OR but now they are working with AND.
As suggested, I tried
<div ng-repeat="account in accounts | filter: functionFilter || {value: searchText}" >
...
</div>
but it seems that works only functionFilter and also
<div ng-repeat="account in accounts | filter: functionFilter ? '' : searchText" >
...
</div>
simply show all.
filter: searchText || functionFiltersearchTextfunctionFilter? Is it a custom filter?trueorfalseunder certain condition