title: Add dependency to Angular module after it's been created
body: <p>Do you guys know if it's possible to add a module dependency after it's been created? Something like that:</p>
  
  <pre><code>// init module in file A
  angular.module("myApp", []);
  
  // retrieve module in file B and add new dependencies:
  mod = angular.module("myApp");
  // now I want to add an 'ngResource' dependency to mod
  // ???
  </code></pre>
  
  <p>EDIT: I understand this may seem a weird question. I am working on a component based app organization  and want too see if a subcomponent can add dependencies to it parent component module without defining its own module. Something like that:</p>
  
  <pre><code>app/
   components/
     |__componentA/ 
          |__app.js // initializes component A module
          |__subcomponentA/ 
                |__app.js // want to add subcomponentA dependencies to componentA module from here
  </code></pre>
  
  <p>My alternative is simply declare all subcomponentA dependencies directly on the componentA module, but from organization point of view, I'd prefer to keep these dependencies inside the <code>subcomponentA</code> directory, so if I later decide to remove the subcomponentA from the app, I don't need to remember to remove its dependencies from the componentA module. I want everything that concerns subcomponentA to be grouped inside the <code>subcomponentA</code> directory. My build script will ensure that componentA code is processed before the subcomponetA is, though.</p>
  
  <p>Thank you to everyone who takes a stab at this.</p>