I use the AngularJS directive typeahead to iterate over an array of objects that was populated before the start of the API, so typeahead retrieves all the information from memory.
With input gains, I would like the focus typeahead show up with all available results, even if input doesn't have a value .
I found this simple JSFiddle for typeahead with which we can use for testing.
I tried using:
<input typeahead-min-length="0" class="form-control input-sm" ng-model="query" typeahead="warehouse.info for warehouse in warehouses | filter:$viewValue" typeahead-on-select="selectedWarehouse = $item;" ng-keypress="fetchWarehouses();"/>
typeahead-min-length="0" that the typeahead-min-length="0" attribute can accomplish this, but it is not.
Any ideas? Thanks!
source share