Reputation: 797
What I'm trying to do is every time a call to the backend is made, I want a spinner to load up with a dark overlay. I know I can do this by simply running the spinner before the call is made, but I'm working with multiple developers and I want this to happen without any of them having to add extra code. I'm working with AngularJS and I can't seem to find any solutions online so I defer to StackOverflow. Thanks for the help in advance!
Upvotes: 0
Views: 76
Reputation: 3104
In Angular this can be solved with an interceptor
. See Angular-loading-bar as example.
Upvotes: 3