title: TypeScript Constructor with multiple parameters and an injected item
body: <p>I have a typescript class as below:</p>
  
  <pre><code>export class ImageItem{
      constructor(public Id: number, public ImageUrl: string, public Caption: string, public Description: string, private _sanitizer: DomSanitizer)
      {
      }
  }
  </code></pre>
  
  <p>all the constructor's parameters are properties that are related to that class but the last item is a class which is injected into my class. My problem is if I want to create an object of this class I want to do something as below:</p>
  
  <pre><code>var a=new ImageItem(1, 'image1', 'http://aaa.com/aa.jpg', '')
  </code></pre>
  
  <p>But it gives me an error because of the injected item. I was wondering how I should solve this issue.</p>