title: Access service into static method in Angular 5
body: <p>I'm trying to access the service's reference into my static method like so :</p>
  
  <pre><code>export class myComponent {
    constructor(private backend: BackendService) { }
  
    public static myMethod() {
    myComponent.backend.getData()
      .subscribe(
        data =&gt; { console.log(data)   },
        error =&gt; { console.error(error); }
    );
   }
  }
  </code></pre>
  
  <p>I'm getting <code>Property backend doesn't exist on type 'typeof myComponent'</code></p>
  
  <p>How can I access <code>backend</code> reference?</p>
  
  <p>Thanks.</p>