Feeling frustrated,
I made an $http
request
ApiService.get_request_params("api/endpoint").then(
function(data) {
$scope.customers = data
},
function(err) {
}
);
The $scope.customers
should be bound to an ng-repeat.
I can see the data by console logging $scope.customers.
When I manually input an array in $scope.customers, it works perfectly.
I have tried using $scope.$apply();
, but the $http $apply is still in progress.
How can I update the view after the ajax call? Any suggestions!!