title: Angular 2 - Inject provider in class (typescript)
body: <p>Not sure what is the best option but here it goes.</p>
  
  <p>I have the following class</p>
  
  <pre><code>export class Order {
      number?: any;
      api?: ApiRequest;
      constructor(number, api: ApiRequest) {
        this.number = number;
        this.api = api;
      }
  }
  </code></pre>
  
  <p>When i create the order i use the following</p>
  
  <pre><code>let order new Order(123, this.request);
  </code></pre>
  
  <p>ApiRequest is an injectable global provider.</p>
  
  <p>Is there a way i can automatically inject the api provider in the class when i create a new object?</p>