title: Angular2/4 Get data from another component
body: <p>I have navbar and router-outlet inside main app component. How to get data from component inside router outlet, when it will have data after Oninit event and render it in navbar?</p>
  
  <pre><code>&lt;div class="main-panel"&gt;
          &lt;app-navbar [style.display]="!authenticationService.isAuthenticated() ? 'none' : ''"&gt;&lt;/app-navbar&gt;
          &lt;router-outlet&gt;&lt;/router-outlet&gt;
    &lt;/div&gt;
  </code></pre>