Angular 4 download file from server via http
When want to download a file from server, usually just provide a
<a href... will do. But what if the file only allow authorised user to access? Means you have to download first, in this case will have to use http
Make sure change the responseType to
Then, in the html file
Now, users are able to download the file when click on the button.