title: Call angularjs service from simple js code
body: <p>I have the following angularjs service:</p>
  
  <pre><code>angular.module('app.main').factory('MyService', ["$http", function ($http) {
      return new function () {
  
          this.GetName = function () {
              return "MyName";
          };
      };
  }]);
  </code></pre>
  
  <p>How can I call <code>GetName</code> function from <code>MyService</code> from legacy js code?</p>