Typeahead component for Vue.js
npm install vue-typeaheadSee a live demo here.
#### NPM
Available through npm as vue-typeahead.
```
npm install --save vue-typeaheadaxios
> Also, you need to install a HTTP client like .
, you could use the new extends property (see below).Otherwise, the
mixins way also works.`html
placeholder="..."
autocomplete="off"
v-model="query"
@keydown.down="down"
@keydown.up="up"
@keydown.enter="hit"
@keydown.esc="reset"
@blur="reset"
@input="update"/>
``Up Arrow: Highlight the next item.
Enter: Hit on highlighted item.
Escape: Hide the list.
isEmpty: Indicates that the input is empty.
isDirty: Indicates that the input is not empty.
> Useful if you want to add icon indicators (see the demo)