title: AngularJS - Getting Module constants from a controller
body: <p>I'm trying to build a myApp.config module to store some settings for my app, I wrote a config.js file: <br></p>
  
  <pre><code>angular.module('myApp.config', [])
      .constant('APP_NAME','My Angular App!')
      .constant('APP_VERSION','0.3');
  </code></pre>
  
  <p>I added it to my app.js (angular-seed):</p>
  
  <pre><code>angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives', 'myApp.controllers', 'myApp.config']).
  </code></pre>
  
  <p>I added it to the index.html file, and now I'm trying to figure out how to get it in my controllers, I tried:</p>
  
  <pre><code>angular.module('myApp.controllers', ['myApp.config'])
    .controller('ListCtrl', ['$scope', 'myApp.config', function($scope, $config) {
      $scope.printme = $config;
    }])
  </code></pre>
  
  <p>but I'm getting:</p>
  
  <blockquote>
    <p>Unknown provider: myApp.configProvider &lt;- myApp.config</p>
  </blockquote>
  
  <p>I'm probably doing something wrong here, any ideas ?</p>