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
use
$scope.returnedData=JSON.parse(data);
It will give you values in JSON format