title: Angular JS, Add Global Array or Object to Module. Recommended or not?
body: <p>When creating an Angular Module one could essentially add global arrays or objects to the module. Like so..</p>
  
  <pre><code>var myApp = angular.module('myApp', ['myModule']);
  
  myApp.run(function()
  {
  
  });
  
  angular.module('myModule', [])
  .run(function()
  {
      // global to module
      var thisModule = angular.module('myModule');
      thisModule.globalArray = [];
      thisModule.globalObject = {};
  });
  </code></pre>
  
  <p>So here's the question(s). Would it be a bad idea to do something like this? Is there anything in the documentation that recommends not doing this? And if so, why would or wouldn't you recommend not doing this?</p>
  
  <p><strong>Demo:</strong></p>
  
  <p><a href="http://jsfiddle.net/hrpvkmaj/8/" rel="nofollow">http://jsfiddle.net/hrpvkmaj/8/</a></p>