angular-busy
angular-busy copied to clipboard
Proper way to handle when error occurs
what is the proper way to terminate the loading when an error occurs for example making an http call?
right now when assign my http call's promise to cg-busy and an error occurs it just continues to spin/load.
thanks!
Yes this is an issue for me too
Wouldn't loadingPromise.reject(); do the trick?
Perhaps (haven't looked into it), but it would make for easier developer user experience to have the module handle this itself
i.e. use finally instead of then, if available on "promise thing"