How to view json data from angularjs http callback?

后端 未结 4 399
攒了一身酷
攒了一身酷 2020-12-21 18:26

I can see my json data in the console and I want to view it on html page after clickbutton function. From my understaning I can either do a promise ($q) or then with http o

4条回答
  •  既然无缘
    2020-12-21 19:19

    use

    $scope.returnedData=JSON.parse(data);
    

    It will give you values in JSON format

提交回复
热议问题