You need to change your selection to:
<select name="show-filter" ng-model="searchText" ...
instead
<select name="show-filter" ng-model="searchText.accruedcard" ...
Explanation: From what I saw, a hard-coded parameter is often used along with ng-options, and this contributes to the problem. The filter uses a selection model, which is currently an object instead of a string, as in the Angular example. The sample objects are fine , but in this case the properties of the object become null when All is selected, because it is not connected to the selection in the same way as the other options.
This is why the searchText filter fails because it expects valid strings (even when using an object for the corresponding template).
Using the string primitive for the selected model, All 'hack' is saved, because this leads to the fact that the selected model becomes ( '' ) instead of zero, which will correspond to all, and all the results will be shown.
source share