Skip to content

Instantly share code, notes, and snippets.

@zmts
Created February 11, 2019 14:18
Show Gist options
  • Save zmts/6b880f0e7ac9b7862a1750da69581df8 to your computer and use it in GitHub Desktop.
Save zmts/6b880f0e7ac9b7862a1750da69581df8 to your computer and use it in GitHub Desktop.
Vue.js: lodash debounce

Vue.js: Lodash debounce

<input v-on:input="debounceInput">

methods: {
  debounceInput: _.debounce(function (e) {
    this.filterKey = e.target.value;
  }, 500)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment