The filter is performing admirably, however, after deleting the entered text, the {{filterlist.name}}
displays null. This leads to the tables appearing empty due to the presence of null
.
Check out the demo here: https://plnkr.co/edit/1QVdctw1hr4ggJOtFHUZ?p=preview
<input type="text" class="form-control" placeholder="Name"
ng-model="filterlist.name"
typeahead-editable="false"
uib-typeahead="person.name as person.name for person in expenses | filter:{name:$viewValue} | limitTo:8">