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
You can create a tag and click on it:
$http.get("http://"+$localStorage.ip+":"+$localStorage.port+"/exportDB").success(function(response) { var dataURI = 'data:application/octet-stream;base64,' + btoa(response); $('').attr({ download: 'db.csv', href: dataURI })[0].click(); });