title: Call a parent component function from a child component in Angular
body: <p>I am trying to call my <code>close()</code> function which is in the parent component from the child component in Angular.</p>
  
  <p>Here is my code on <a href="http://plnkr.co/edit/eocCBMJeSotu9lRjHNxd?p=preview" rel="noreferrer">Plunker</a>, I tried to import the component and call the function directly in my child component but I get this error: Cannot read property 'close' of undefined</p>
  
  <p>How can I fix this?</p>