Sunday, November 29, 2015

Using angular-busy to intercept all http request

We used angular-busy to show loading indicators on different parts of a web app based on a particular promise of a http request. This is really nice on desktop sized apps but on smaller devices we prefer to show one loader for all API calls. angular-busy doesn't come with a http interceptor to rule all them promises so we used the following one to do the trick. Plnkr can be found here.


1 comment:

  1. Clear, clean code - excellent post. I really appreciate that you took the time to post this and the associated Plnkr. It made things much clearer for me! Thanks!!

    ReplyDelete