I do the $http.get request as soon as my javascript loaded, it works fine in 90% percent of cases, however, sometimes it just dont call the success or error callback, I'm not sure if the request is actually sent or it just doesn't call the callback, it's weird because it works good in 90% of cases, and 100% if I run it on my own computer, if I put this onto remote server, this case will happen...
$scope.load = function(){
console.log("Sending request at "+Date());
$http.get(requestUrl).
success(function(data, status, headers, config) {
console.log("Loading Question Succeed");
$scope.Content = data.Html;
data = data.Data;
}).
error(function(data, status, headers, config) {
console.log("Loading Question Failed");
});
};
$timeout($scope.load);