I seem to be missing something here with filtering an ng-repeat with a search box.
<li ng-if="searchTab"><input type="text" class="form-control" placeholder="Search" ng-model="search" >
</li>
and the ng-repeat
<div dir-paginate="saving in savings| orderBy:orderByField:!reverseSort| filter:search | filter:{retailer:filterBy}|itemsPerPage:10" class="list-group-item">
is there any obvious reason why the filter doesnt do anything when i type in the search box?
Edit - I notice that if i remove the ng-if it works. Is there any way of using both?