I am using a nodeJS program as a server and an AngularJS web application as the client.
To create the CSV I\'m using the \"express-csv\" library (https://www.npmjs.c
I faced same issue that the solutions mentioned above with works well with Chrome and Firefox, but not with safari/IE.
Tried out following hack and it worked for me-
var url="http://'+$localStorage.ip+':"+$localStorage.port+'/exportDB';
var form = angular.element("");
form.submit();
File download will be handled by browser itself. though following is limitation to it -
There is another approach that worked and it was -
var url="http://'+$localStorage.ip+':"+$localStorage.port+'/exportDB';
$window.location.href = url;
Suggestions and Discussions welcome!