title: How to access a child component class from the parent component class in Angular2?
body: <p>In Angular 2 how do you access a child component class from the parent component class? e.g.</p>
  
  <pre><code>import {Component, View} from 'angular2/core';
  
  @Component({selector: 'child'})
  @View({template: `...`})
  class Child {
      doSomething() {
          console.log('something');
      }
  }
  
  @Component({selector: 'parent'})
  @View({
      directives: [Child],
      template: `&lt;child&gt;&lt;/child&gt;`
  })
  class Parent {
      constructor() {
          //TODO: call child.doSomething() when the child component is ready
      }
  }
  </code></pre>
  
  <p>In this example how would I call the <code>Child</code> component's <code>doSomething()</code> method from either the <code>Parent</code> component's constructor or some callback function.</p>