Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Not returning response from $http and handout

$
0
0

@iamjb wrote:

I am working with a ionic app, I get data from API request with navigate to a new page.

Sth like

$scope.$on('$ionicView.beforeEnter', function(event){
$http(configObj).
then(function(response) {
//success handle
console.log("success result: " + JSON.stringify(response));
//Handle the response.......

}, function(data, status, headers, config) {
  //fail handle
  console.log("data:" + JSON.stringify(data));
  console.log("status:" + JSON.stringify(status));
  console.log("headers:" + JSON.stringify(headers));
  console.log("config:" + JSON.stringify(config));
});

})

And there is 50% chance work without issue, and 50% chance not returning response (i mean no success handle callback or fail handle callback return and the app is handout without error, seem keep waiting the response)

Do any one got similar issue?
Any idea to solve? Thx

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>