I am working with a Web API endpoint that provides the location of a URL ().
When a button is clicked, this API is called and a URL is returned. The file format could be PDF, Excel, or Word.
I am looking for a way to download the file and save it to disk using JavaScript (AngularJS).
Currently, I open the file in a new tab/window.