title: Angular Inject $http into config or provider into run
body: <p>I am using angular-route-segment in my angular app and an trying to configure the segments from a json feed. </p>
  
  <p>I have having problems with this, because I can't figure out how to inject <code>$http</code> into the <code>app.config</code> function. This fails with <code>Unknown provider: $http</code></p>
  
  <pre><code>myApp.config(["$http", "$routeSegmentProvider", function ($http, $routeSegmentProvider) {
     /* setup navigation here calling $routeSegmentProvider.when a number of times */
  }
  </code></pre>
  
  <p>So instead of injecting $http into <code>config</code>, I also tried injecting <code>$routeSegmentProvider</code> into <code>myApp.run</code></p>
  
  <pre><code>myApp.run(["$http", "$routeSegment", function($http, $routeSegment) {
      /* can use $http here to get data, but $routeSegment is not the same here */
      /* $routeSegment does not have the when setup method */
  }]);
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>myApp.run(["$http", "$routeSegmentProvider", function($http, $routeSegmentProvider)
  </code></pre>
  
  <p>but I get <code>Unknown provider: $routeSegmentProviderProvider &lt;- $routeSegmentProvider</code></p>