title: Including global config in AngularJS module dependencies
body: <p>I've developed an AngularJS app that uses browserify and injects modules as dependencies into the main app. In all of the modules I want to be able to access global configs from a routingConfig.js file.</p>
  
  <p>Partial code:</p>
  
  <p>main app.js</p>
  
  <pre><code>  var routingConfig = require('./common/config/routingConfig');
  
    module.exports = angular.module('app', [
      // modules as dependencies
      require('./home/home').name,
      require('./login/login').name
    ]);
  </code></pre>
  
  <p>module home.js</p>
  
  <pre><code>  var HomeCtrl = require('./homeController');
  
    module.exports = angular.module('app.home', [
      'home/home.tpl.html',
      'ui.router'
    ])
    .config(function config($stateProvider) {
      $stateProvider
        .state('home', {
          url: '/',
          controller: 'HomeCtrl',
          templateUrl: 'home/home.tpl.html',
          data: {
            pageTitle: 'Home'
  
            /**
             * I want to be able to use values from routingConfig here...
             */
          }
        });
    })
    .controller('HomeCtrl', ['$scope', HomeCtrl]);
  </code></pre>
  
  <p>I could of course require routingConfig in every module, and that would work, but ideally I'd like to be able to just require it once and use it globally in the main app and its modules. Any ideas would be much appreciated.</p>