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

0.0.5 • Public • Published

vue-async-computed-decorator

NPM Version Build Status Downloads Dependency Status License

This package provides a vue-class-component decorator for vue-async-computed. This allows you to use vue-async-computed in your class-style Vie components easily.

Usage Example:

import Vue from 'vue'
import AsyncComputedPlugin from 'vue-async-computed'
import AsyncComputed from 'vue-async-computed-decorator'
import Component from 'vue-class-component'
 
Vue.use(AsyncComputedPlugin)
 
@Component
class MyComponent extends Vue {
  @AsyncComputed
  async someComputedProp() {
    ...
  }
}

Credits

Thanks to @TheNoim, @saraedum, and @nwtgck for the implementation of this decorator.

Package Sidebar

Install

npm i vue-async-computed-decorator

Weekly Downloads

499

Version

0.0.5

License

MIT

Unpacked Size

5.8 kB

Total Files

5

Last publish

Collaborators

  • foxbenjaminfox