title: How to inject upgraded Angular 1 service/factory to Angular 2 component in ES5?
body: <p>I have an Angular1 service with name, say, 'myService'</p>
  
  <p>I then upgraded it using the Angular2 UpgradeAdapter like this:</p>
  
  <pre><code>var upgradeAdapter = new ng.upgrade.UpgradeAdapter();
  upgradeAdapter.upgradeNg1Provider('myService');
  </code></pre>
  
  <p>Now I need to inject it to the angular2 component. Official upgrade guide only has typescript version for now. In typescript you use @Inject anotation with the service name for it like so:</p>
  
  <pre><code>export class MyComponent {
    constructor(@Inject('myService') service:MyService) {
      ...
    }
  } 
  </code></pre>
  
  <p>What is the syntax for injecting a service by name using ES5?</p>