How do I download a file with Angular2 or greater
The problem is that the observable runs in another context, so when you try to create the URL var, you have an empty object and not the blob you want. One of the many ways that exist to solve this is as follows: When the request is ready it will call the function “downloadFile” that … Read more