title: AngularJS constants
body: <p>Is it possible to inject a constant into another constant with AngularJS?</p>
  
  <p>e.g. </p>
  
  <pre><code>var app = angular.module('myApp');
  
  app.constant('foo', { message: "Hello" } );
  
  app.constant('bar', ['foo', function(foo) { 
      return { 
          message: foo.message + ' World!' 
      } 
  }]);
  </code></pre>
  
  <p>I need the use of an angular constant because I need to inject this into a config routine. i.e.</p>
  
  <pre><code>app.config(['bar', function(bar) {
      console.log(bar.message);
  }]);
  </code></pre>
  
  <p>I know that you can only inject constants and providers into config routines, and my understanding is that you can do dependency injection into providers, however, it does not seem to be the best method for this sort of scenario...</p>
  
  <p>Thanks in advance for your help!</p>