There seems to be a problem with filtering an ng-repeat using a search box.
<li ng-if="searchTab"><input type="text" class="form-control" placeholder="Search" ng-model="search" >
</li>
and then in the ng-repeat
<div dir-paginate="saving in savings| orderBy:orderByField:!reverseSort| filter:search | filter:{retailer:filterBy}|itemsPerPage:10" class="list-group-item">
I'm wondering why the filter isn't working when I enter text in the search box.
Edit - It seems that removing the ng-if enables the filter to work. Is there a way to have both functionalities?