angular-busy icon indicating copy to clipboard operation
angular-busy copied to clipboard

Proper way to handle when error occurs

Open mpaul31 opened this issue 11 years ago • 4 comments

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!

mpaul31 avatar Apr 15 '15 18:04 mpaul31

Yes this is an issue for me too

faceleg avatar Jun 15 '15 04:06 faceleg

Wouldn't loadingPromise.reject(); do the trick?

benoror avatar Jun 15 '15 15:06 benoror

Perhaps (haven't looked into it), but it would make for easier developer user experience to have the module handle this itself

faceleg avatar Jun 15 '15 23:06 faceleg

i.e. use finally instead of then, if available on "promise thing"

faceleg avatar Jun 15 '15 23:06 faceleg