IonicLoading using Interceptor only hiding on HTTP 200

I am using the IonicLoading via Interceptor described here:

http://learn.ionicframework.com/formulas/loading-screen-with-interceptors/

but anytime my http requests return something other than HTTP 200, the hiding event does not seem to fire, just hangs on “Loading”

Thanks.

You most likely need to implement the requestError and/or responseError to also hide the loading dialog:

https://docs.angularjs.org/api/ng/service/$http

1 Like