title: Angular2 EventEmitter fire to parent component
body: <p>I am trying to fire an Event from the child component to the parent component.</p>
  
  <pre><code> @Component({
   template:'&lt;foo&gt;&lt;/foo&gt;'
  })
   export class ParentComponent{
     onDoSomething($event){
     //do work here
     }
  
  }
  
  @Component({
  selector:'foo'
  template:&lt;button (click)="onClick($event)"&gt;MyButton&lt;/button&gt;
  })
  export class ChildComponent{
     myEvent eventName = new EventEmitter();
  
     onClick(button){
          this.eventName.emit(button);
     } 
  
  }
  </code></pre>
  
  <p>How do i get this to work?</p>