An open API service indexing awesome lists of open source software.

https://github.com/foxbenjaminfox/vue-async-computed-decorator

A vue-class-component decorator for vue-async-computed
https://github.com/foxbenjaminfox/vue-async-computed-decorator

decorator vue

Last synced: 7 months ago
JSON representation

A vue-class-component decorator for vue-async-computed

Awesome Lists containing this project

README

          

vue-async-computed-decorator



NPM Version


Build Status


Downloads


Dependency Status


License

This package provides a [`vue-class-component`](https://github.com/vuejs/vue-class-component/) decorator for [`vue-async-computed`](https://github.com/foxbenjaminfox/vue-async-computed). This allows you to use `vue-async-computed` in your class-style Vie components easily.

## Usage Example:

```javascript
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](https://github.com/TheNoim), [@saraedum](https://github.com/saraedum), and [@nwtgck](https://github.com/nwtgck) for the implementation of this decorator.