It may not be exactly what you want, but I have the same problem. Here is what I did at the end:
$http.post('/download', ).
success(function(data, status, headers, config) {
$window.open('/download');
}).
error(function(data, status, headers, config) {
console.log('ERROR: could not download file');
});
app.post("/download", function (req, res) {
});
app.get("/download", function (req, res) {
res.download("./path");
});
, $window.open(/download); HTML? , . XHR, , .
* EDIT:
, , , :
$window.open('/download');