【備忘】Angular JS - Blobファイルをダウンロードする処理
$http({method : 'GET', url : 'ファイルのURL', responseType : 'blob'}) .success(function(data) { var a = document.createElement('a'); a.download = 'ファイル名'; a.href = window.URL.createObjectURL(data); a.click(); });
$http({method : 'GET', url : 'ファイルのURL', responseType : 'blob'}) .success(function(data) { var a = document.createElement('a'); a.download = 'ファイル名'; a.href = window.URL.createObjectURL(data); a.click(); });