title: How to set providers for annotations used inside the constructor?
body: <p>Consider the following class structure</p>
  
  <pre><code>@Component({selector: 'myComp', template: '&lt;div&gt;&lt;/div&gt;'})
  
  export class MyComp {
  
  //Variables...
  
  constructor( @Inject(ElementRef) private elementRef: ElementRef, 
  @Attribute('highlight') private highlight: string) { }
  
  //Methods ...
  </code></pre>
  
  <p>Now in other class or in unit test's describe block I need to set provider for injecting this class.</p>
  
  <p>In my unit test I have</p>
  
  <pre><code>beforeEachProviders(() =&gt; [MyComp, ElementRef ,Attribute ]);
  </code></pre>
  
  <p>Which is incorrect, I need to know what's the correct way to provide ElementRef and @Attribute to make it work.</p>
  
  <p>Error I was facing is</p>
  
  <pre><code>Error: No provider for @Attribute(highlight)! (MyComp-&gt; @Attribute(highlight))
      Error: DI Exception
  </code></pre>
  
  <p>Edit: attribute 'highlight' is a boolean attribute.</p>