I am writing application using AngularJS and Spring. I would like to send request to the server and download response returned from controller as a file. In controller I hav
It is possible to download a file using XHR request. You can use angular $http to load the file and then use Blob feature of HTML5 to make browser save it. There is a library that can help you with saving: FileSaver.js.