vue-debounce-decorator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

vue-debounce-decorator

Build Status code style: prettier

Debounce vue class methods using the @Debounce() decorator with vue class components.

import Vue from 'vue'
import Component from 'vue-class-component'
import { Debounce } from 'vue-debounce-decorator'
 
@Component
export default class App extends Vue {
  @Debounce(500)
  debouncedMethod() {
    console.log(`This method is debounced by 500ms`)
  }
}

Installing

yarn add -D vue-debounce-decorator

or

npm i vue-debounce-decorator --save-dev

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11,852latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11,852
1.0.01

Package Sidebar

Install

npm i vue-debounce-decorator

Weekly Downloads

1,853

Version

1.0.1

License

MIT

Unpacked Size

4.22 kB

Total Files

5

Last publish

Collaborators

  • trepz