title: Angular 2 Communication between components on the same level
body: <p>Is there any way how to communicate between 2 components on the <strong>same level</strong> using event emmiters? </p>
  
  <p>Please, see to comments in enclosed html snippet. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="custom-container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-xs"&gt;
        &lt;app-entity-listing (associationShown)=" TO DO " [isFromRoot]="isFromRoot"&gt;
  
  
        &lt;!-- I am emiting a boolean value  --&gt;
        &lt;/app-entity-listing&gt;
      &lt;/div&gt;
  
      &lt;div class="col-xs-5"&gt;
        &lt;div class="right-column-wrapper"&gt;
          &lt;div class="main-container"&gt;
            &lt;app-create-entity-screen-no-association [isVisible]="true"&gt;&lt;/app-create-entity-screen-no-associatio
  
  
         &lt;! -- Based on emitted value from the first component, I will be visible or not  --&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/B6ABX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B6ABX.png" alt="enter image description here"></a></p>