title: Angular 2 - How to access directives from Component
body: <p>I attached a dialog component as a directives in order to show it on the main component page when I click on the button on the main page (which link to the main component). This is how I did it</p>
  
  <p><strong>In the template</strong></p>
  
  <pre><code>&lt;button id="goToTasksCases" class="btn btn-success btn-lg" (click)="doShowStartNewCase($event)"&gt;START A NEW CASE&lt;/button&gt;
  &lt;modal-new-case&gt;&lt;/modal-new-case&gt;
  </code></pre>
  
  <p><strong>In the component</strong></p>
  
  <pre><code>@Component({
      selector: 'case-index'
  })
  @View({
      templateUrl: 'client/app/case/case.index.html',
      directives : [ModalNewCaseComponent]
  })
  export class CaseIndexComponent {
      doShowStartNewCase(event: any) {
          // how can I access the ModalNewCaseComponent
      }    
  }
  </code></pre>
  
  <p>However, i need to set some values for the child component (<code>ModalNewCaseComponent</code>) after some callback from Rest service. How can I achieve that with the current setup ? </p>