Add debounce to search

This commit is contained in:
Joseph Schorr 2017-05-03 16:00:50 -04:00
parent 25d8b6ec02
commit 481d9b2394
2 changed files with 18 additions and 3 deletions

View file

@ -49,6 +49,7 @@
<input class="form-control" type="text" placeholder="search"
ng-model="$ctrl.enteredQuery"
typeahead="$ctrl.onTypeahead($event)"
ta-debounce="250"
ta-display-key="name"
ta-suggestion-tmpl="search-result-template"
ta-clear-on-select="$ctrl.clearOnSearch"