I think the best way to download any file generated by REST call is to use window.location example :
$http({_x000D_
url: url,_x000D_
method: 'GET'_x000D_
})_x000D_
.then(function scb(response) {_x000D_
var dataResponse = response.data;_x000D_
//if response.data for example is : localhost/export/data.csv_x000D_
_x000D_
//the following will download the file without changing the current page location_x000D_
window.location = 'http://'+ response.data_x000D_
}, function(response) {_x000D_
showWarningNotification($filter('translate')("global.errorGetDataServer"));_x000D_
});
_x000D_