title: Access constant directly from Angular module
body: <p>I have the following lines:</p>
  
  <pre><code>var app = angular.module('app', []);
  app.constant("const", {
     foo: "bar",
     test: "123"
  });
  </code></pre>
  
  <p>I would like to now access the information in <code>constant</code> directly from the module <code>app</code>. Something like this didn't work:</p>
  
  <pre><code>console.log(app.constant.const.foo);
  </code></pre>
  
  <p>I know you can inject constants into controllers, services etc and access the information but for my purposes, I would like to access them straight off the module. </p>
  
  <p>Is the only way to access a registered <code>constant</code> is to inject it into a controller/service/etc? </p>