title: How do I access an object in a different module in AngularJS?
body: <p>I have two modules:</p>
  
  <pre><code>angular.module('test1', [])
      .run(function() {
          var numbers = [1, 2, 3,4];
          // do more operations on numbers here
      });
  
  angular.module('test2', [])
      .run(function() {
          // I want to edit or iterate over numbers here
      });
  </code></pre>
  
  <p>I want to be able to edit the variable <code>numbers</code> in the <code>test2</code> module. I'm extremely new to Angular so it seems like the easiest way to do this is to put numbers in $rootscope but that doesn't seem too desirable.</p>
  
  <p>What's the most idiomatic way to achieve this? Do I make numbers a <code>.value()</code>? Do I make it into a service? Do I make 'editor' depend on 'test' (a concept that I am still trying to grasp)?</p>