$ionicLoading blocks app when offline


#1

I’m using $ionicLoading to show a loading indicator whenever a request is being performed. this works great on a stable wifi connection but blocks the whole app (the indicator never disappears) when the connection is weak or offline.

What would be a good way to work around this? I’m using HTTP interceptors in angular to show the loading indicator


#2

You could setup a cancle event so that if X amount of time passes and the request hasnt been resolved, return an error.