title: Is that possible to call module factory from other javascript
body: <p>I have two javascript files separately and I want to retrieve one from another. So, I created Module factory as below;</p>
  
  <pre><code> var module = angular.module('test',[]);
  
   module.factory('$result', function() {
     var data = {something:"somewhere"};
     return data;
   });
  </code></pre>
  
  <p>and I want to called from other file. For now, I settled as below;</p>
  
  <pre><code> var module = angular.module('myApp', ['test']);
  
    module.controller('NearestController', function($test) {
  
      console.log(test);
  
    });
  </code></pre>
  
  <p>Which part of me doing wrong ?? please help me and I'm newbie in angular</p>