I have an Web API end point which returns location of URL (http://somedomain.com/myproj/reports/dailystock.pdf).
A button is click, then this API gets called, url is returned).It might be PDF or XL or Word file too
How can i want to download the file (save on) to disk using JavaScript (AngularJs).
At present, I open the file in new window (tab).