I am using this $http.get call in my angular JS:
$scope.exportData = [];
$http.get('/reports?UserId=1').then(function (result) {
$scope.exportData = result.data
});
$scope.exportData
returns blank :(
but when I debug this I see that result.data
is getting populated and result.data
has 5 arrays in it...my question is how would I put each of those arrays in $scope.exportData
result.data
has a length value of 5. Maybe I could use that to do a foreach? I would know how to do that in php by javascript/jquery/angular js I am a newbie. Any help would be much appreciated.
Here is a screenshot on what gets populated for results.data:
Thanks, J