We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorry for a noob question, but how do I use it with Nuxt?
The text was updated successfully, but these errors were encountered:
@vzakharov just install the package and register it as a plugin
myPlugin.client.js
import Vue from 'vue' import AsyncComputed from 'vue-async-computed' Vue.use(AsyncComputed)
then in your component, use
myComponent.vue
export default { asyncComputed: { async myResolvedValue() { return await api.get(`/users/${this.value.username}/message/`, {'headers': { 'Authorization': 'JWT ...' }}) .then(response => response.data) } } }
Sorry, something went wrong.
No branches or pull requests
Sorry for a noob question, but how do I use it with Nuxt?
The text was updated successfully, but these errors were encountered: