title: Inject a config in AngularJS
body: <p>I have a config that I'd like to be able to inject into Angular services, directives, etc.  What is the best way to go about doing this?</p>
  
  <p>I was playing with the idea of making config module:</p>
  
  <pre><code>'use strict';
  angular.module('config', [])
  </code></pre>
  
  <p>But I wasn't sure how to construct the object literal that would be the actual config object that gets injected:</p>
  
  <pre><code>angular.module('myModule', ['ngResource', 'config'])
    .factory('myservice', function ($resource) {
          return $resource(config.myservice,{}, {
            // whatever
          })
    });
  </code></pre>
  
  <p>Would it be okay to just expose config as a service and inject that?</p>