title: How to declare directives in angular 2
body: <p>When i tried using directives,it says error </p>
  
  <pre><code>Argument of type '{ selector: string; templateUrl: string; providers: typeof HeaderClass[]; directives: typeof Moda...' is not assignable to parameter of type 'Component'.
  </code></pre>
  
  <p>Object literal may only specify known properties, and 'directives' does not exist in type 'Component'.</p>
  
  <p>Here is my code,</p>
  
  <pre><code>@Component({
    selector: 'my-app',
    templateUrl: './app/common/common.component.html',
    providers: [HeaderClass],
    directives: [ModalComponent]
  })
  </code></pre>
  
  <p>Can anyone please help me.Thanks.</p>