vue-async-computed-decorator
A vue-class-component decorator for vue-async-computed
40,233
15
| Install | |
|---|---|
npm install vue-async-computed-decorator |
|
| Latest Version: | 0.0.5 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Jan 7, 2023 |
| Links: | GitHub · npm |
Maintainer: foxbenjaminfox
vue-async-computed-decorator
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.
Related Packages
vue3-async-computed
This Vue 3 plugin allows you to create computed properties that are computed asy...
6,487
11
Version History
| Version | Released | License |
|---|---|---|
| 0.0.5 | MIT | |
| 0.0.4 | MIT | |
| 0.0.3 | MIT | |
| 0.0.2 | MIT | |
| 0.0.1 | MIT |