I sending a request to my php file to get data from database from my AngularJS file. Some-time I am getting data also lot of time there is no response is coming. Here is my AngularJS code:
myApp.controller('PageCtrl', function PageCtrl($scope, $routeParams, $http) {
$http.post(APP_URL + "server/FullDesc.php", {id: parseInt($routeParams.Id)}).success(function (data) {
var timer = setTimeout(function () {
$scope.Details = data[0];
console.log(data);
$scope.$apply($scope.Details);
}, 10);
}, 'json');
})
In resposne I am getting output of my response like this
In image you can see there is no response showing. How to solve this issue.