I'm using nuxtjs, and I'm trying to figure out if it is possible to access component methods from the async data function.
For example I want to do something like this:
methods: {
parseResult(data) {
// do somthing with data...
}
},
async asyncData({ app }) {
const { data } = await app.$axios.get('/some/api')
return app.parseResult(data)
},