title: Angularjs method factory used in js file
body: <p>i would like to call factory method in my basic js file but i don't know how do this ?
  Can you help me please ? </p>
  
  <p>For example i have this factory :</p>
  
  <pre><code>app.factory('rootService', function($rootScope,mainService){
  
  function Factory() {}
  
  Factory.mainService = new mainService();
  
  Factory.prototype.load_root = function() {
  
      $.post({
          url: my_url,
          success: function(i__json) {
              alert(i__json)
          }
      });
  };
  
  return Factory;
  });
  </code></pre>
  
  <p>And i would like to call this method load_root in my basic js file 
  It's possible ? </p>