我想在使用AngularJS下载文件时解压压缩文件。我正在尝试使用以下代码,<a download="My_File.PNG" target="_self" ng-href="Path of the zip file/My_File.PNG.zip">My_File.PNG</a>
如何在浏览器中从My_File.PNG.zip下载实际的文件My_File.PNG?
我正在尝试执行一个从本地目录获取文件的http.get请求,此时我只想console.log api get被请求的响应。getFile()显示了console.log,但调用了http,不确定http在angular2中是如何使用的;我知道在angular1中它使用.then作为响应。import { Http, HTTP_PROVIDERS } from '@