0
如何使用angularjs从api下载json到本地存储。 我有我想要存储在我的电脑中的一组数据,但不知道如何保存它。我知道如何获取数据,并使用从angularjs中的api请求下载json到本地存储
angular.module("myModule",[])
.controller('myController',['$scope','$http',function(response){
$http.get(json file url).then(function(response){
console.log(response)
})
}])