Basic Form

Autocomplete - Bootstrap Typehead
Autocomplete - typehead
Typeahead is a AngularJS version of Bootstrap v2's typeahead plugin. This directive can be used to quickly create elegant typeaheads with any form text input.
Basic example

Basic example via data attributes: (type 'Alas...')

Model: {{selected | json}}
<input type="text"
ng-model="selected"
uib-typeahead="state for state in main.states
| filter:$viewValue | limitTo:8"
class="form-control"
/>
Basic example - Asynchronous results

Basic asynchronous results example (type 'item...')

Model: {{asyncSelected | json}}
<input type="text"
ng-model="asyncSelected"
placeholder="Locations loaded via $http"
uib-typeahead="address for address in main.getLocation($viewValue)"
typeahead-loading="loadingLocations"
typeahead-no-results="noResults"
class="form-control"
/>