I have a rest service for file download, I test and it works if I just copy paste the url to addres bar in browser I can see the browser pop up window ask me to save the file:
myaddress/assets/csvreport
BUT using AngularJs with a download button, there is no pop up window if I use it like this;
$scope.downloadAssets = function () {
$http({
method: 'GET',
url: '/assets/csvreport',
params: criteria
})
I call this method from my html like this;
<input ng-click="downloadAssets()" value="Download" type="submit">
This only returns the string in response and I can not see any browser file save pop-up
Any Ideas? It needs to work on IE8