Skip to content

Instantly share code, notes, and snippets.

@alexfinnarn
Last active December 3, 2018 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexfinnarn/63da970b4b2016ec17df7dc4696d4130 to your computer and use it in GitHub Desktop.
Save alexfinnarn/63da970b4b2016ec17df7dc4696d4130 to your computer and use it in GitHub Desktop.
logic behind template
computed: {
fOptions() {
// Return filtered options...
},
options() {
return store.state.autocompleteOptions[this.optionsKey];
},
},
methods: {
onInput(value) {
//...
},
moveDown() {
//....
},
moveUp() {
//...
},
select() {
//...
},
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment