title: Angular/ dependency injection outside constructor
body: <p>I have a class</p>
  
  <pre><code>export class MyClass {
  
     constructor(data: any) {
       this.data = data;
    }
  }
  </code></pre>
  
  <p>I also want to inject ChangeDetectorRef like this.  <code>constructor(data: any, cd: ChangeDetectorRef )</code></p>
  
  <p>But in this case I can't create object from MyClass like this <code>const myClass = new MyClass(data)</code>
  Is it possible to inject ChangeDetectorRef outside constructor?</p>