title: How to make a loading indicator for every asynchronous action (using $q) in an angularjs-app
body: <p>I know there are several approaches to loading-indicators in angular js (this one, for example: <a href="https://gist.github.com/maikeldaloo/5140733" rel="noreferrer">https://gist.github.com/maikeldaloo/5140733</a>).</p>
  
  <p>But they either have to be configured for every single call, or - if they act globally, as I want - just apply to http-requests, but not to $q-promises being used in services.</p>
  
  <p>The global loading indicators, I've seen so far, work with </p>
  
  <pre><code>$httpProvider.responseInterceptors.push(interceptor);
  </code></pre>
  
  <p>Is there something similiar for <code>$q</code>, like a <code>$qProvider.reponseInterceptors</code>? And if not, what would be the most convenient way to implement such a functionality? Is it possible to use a decorator-pattern of some kind for example? </p>