title: How to inject $rootScope into a service?
body: <p>how to inject a <code>$rootScope</code> into the factory definition for the following code (so the file can be minified):</p>
  
  <pre><code>(function() {
      var signalRService = function($rootScope) {
         // ... 
      };
  
      var app = angular.module("App");
      app.factory("signalRService", signalRService);
  }());
  </code></pre>