angularjs - $http.then callback not being called -
angularjs - $http.then callback not being called -
i have $http.post phone call callback function not called. have exact same code phone call , 1 works. can see issues next code.
var info = {entityids: $scope.allentityids, accountids: $scope.accountids}; $http.post("http://localhost:8080/psi4web/rest/social/posts", data, {params: {filter: $scope.filters, pagenum: $scope.pagenum, pagesize: $scope.pagesize}}) .then(function(res) {$log.info("test me")}, onerror);
for debugging purposes, added inline function within then() shown above , doesnt work either. made sure info beingness returned backend.
thanks.
just few minor details keeping having success. corrected code below.
var info = {entityids: $scope.allentityids, accountids: $scope.accountids}; var mypost = $http.post("http://localhost:8080/psi4web/rest/social/posts", data, {params: {filter: $scope.filters, pagenum: $scope.pagenum, pagesize: $scope.pagesize}}); mypost.then(function(res){ $log.info("test me"); }, function(){ onerror(); });
angularjs
Comments
Post a Comment