I have a problem a problem with showing data in ui grid table.
I have defined an API from which I want to show data and I can access them through the browser, but the problem is in showing rendered data. Here is my angular controller in which I've defined function for getting data from API:
getData();
$scope.myData = [];
$scope.gridOptions.data = []
$scope.gridOptions.data = $scope.myData;
function getData() {
$http.get('/load/').success(function (data) {
data.forEach( function( row, index ) {
$scope.myData.push(data);
});
$scope.gridOptions.data = data;
console.log('data from api', data);
})
};
I've also tried to parse data var jsonObj = JSON.parse(data);, but I got an error
Unexpected token o
at Object.parse (native)

