title: AngularJS - $http and notification service
body: <p>I'm trying to build a simple notification service on angularJS :</p>
  
  <pre><code>angular.module("my.services", [])
      .service("NotificationsService", function() {
  
          this.show  = function(message, options) {
              // display a notification
          };
  
          this.error = function(message) {
              this.show({...});
          }
  
          ...
  
      });
  </code></pre>
  
  <p>That would be fired when the server returns a "notifications" array embedded in the api :</p>
  
  <pre><code>{
      notifications: [{type: "error", message: "Error message"}, ...],
      data: [item1, item2, ...]
  }
  </code></pre>
  
  <p>And now I would like to plug my service to $http, but I can't find a way to do so !... </p>
  
  <p>Any ideas ?</p>