title: Angular 2 child component refers to parent component
body: <p>I have an application which contains three components. Application, EditView,Dialog. </p>
  
  <p>Application components contains EditView components which can contain many other EditView components and one Dialog component( if Dialog component is visible on a page). </p>
  
  <p>Dialog component contains Application component. When I put that in Dialog component in declaration path:</p>
  
  <pre><code>directives:[Application]
  </code></pre>
  
  <p>I'am getting this error:</p>
  
  <p>Unexpected directive value 'undefined' on the View of component 'Dialog'</p>
  
  <p>Is it possible at all to have such structure where child component can contain component from upper level regarding some conditions?</p>
  
  <p>If I drop Application component from Dialog or replace it with other components it works fine.</p>
  
  <p>Zlaja</p>