title: How to pass values to directive in angular
body: <p>My code,</p>
  
  <pre><code>  &lt;modal *ngIf='showModal' [imageValue]="imageId"&gt;&lt;/modal&gt;
  </code></pre>
  
  <p>My model component,</p>
  
  <pre><code>@Component({
    selector: 'modal',
    templateUrl: './app/modal/modal.component.html',
    providers: [HeaderClass]
  })
  
  
  export class ModalComponent  {
    imageValue:any;
  </code></pre>
  
  <p>I want to get the value of this 'imageValue' but I dont know how to do it.Can anyone please help me.Thanks.</p>