i need your help. Maybe someone has an idea:
I have created an API-endpoint that renders and returns an pdf file. The pdf is generated by DomPDF.
At the moment i just created static links with some GET-Parameters to download the Files. That is working fine so far.
But if the files are a little bit bigger, it can take some time to generate the pdf. For that reason i'd like to call the API by vue js.
When the user clicks the download-button, a loading indicator should appear. On receiving the response i'd like to trigger download.
Do you have an idea how to do that with vue resource ?
At the moment it only downloads corrupted pdf files.