pespantelis/vue-typeahead

How can i use debounce?

tirjok opened this issue · 1 comments

How can i use debounce?

You could use the debounce package like below:

<template>
    <input @input="debounce"/>
</template>

<script>
import debounce from 'debounce'

export default {
  // ...
  computed: {
    debounce () {
      return debounce(this.update, 500)
    }
  }
}
</script>