0👍
I would create a method that makes the API request, and store response, something like:
async uploadMedia(){
const {data} = await makeAPICallToUploadMedia();
this.media= data;
}
then simply in media-upload element :jsonHandler=’media’
- [Vuejs]-Vue navigation with vue router: dynamic navigation items upon user selection
- [Vuejs]-Format json for line chart using laravel api and vue js
Source:stackexchange.com