Angular typeahead snippet.
✓ Published0🌍 Public
Aandybak
Last edited Jan 18, 2014
Created on Jan 18, 2014
Two AngularJS typeahead inputs demonstrate both synchronous and asynchronous autocomplete. The first filters a hardcoded array of U.S. state names using `$viewValue` and `limitTo:8`. The second uses `$http.get` to query the Google Maps Geocoding API, returning formatted addresses as a promise, with a loading glyphicon shown via `typeahead-loading`. Both bind selections to the model, displayed as JSON in `<pre>` blocks.
AI-generated description