title: Angular4 - Parent child - Masterpage (Header, content, footer) like implementation
body: <p>There are are some links in header components and when I click on any link.. corresponding data to that link must get display in the other component called app-Content.
  but data is displaying only in header component .... not in the content component.</p>
  
  <p>I am trying to achieve something like Master page where we have top navigation bar, content and footer... when clicking on any link in top navigation bar, content of that link should be displayed in the center (which is content component).</p>
  
  <p>I am certainly missing something or the way it is implemented is wrong... please advise.</p>
  
  <p>These are the components I have.</p>
  
  <pre><code>&lt;app-header&gt;
  &lt;app-Content&gt;
  &lt;app-Footer&gt;
  &lt;page-one&gt;
  &lt;page-two&gt;
  
  &lt;app-Content&gt;
  &lt;H2&gt; Content &lt;/H2&gt;
  &lt;/app-Content&gt;
  
  &lt;app-Footer&gt;
   &lt;H2&gt; Footer &lt;/H2&gt;
  &lt;/app-Footer&gt;
  </code></pre>
  
  <p>Index.html has reference of </p>
  
  <p>This is from root.component.html</p>
  
  <pre><code>&lt;div class="panel panel-default"&gt;
    &lt;div class="panel-heading"&gt;&lt;app-header&gt; &lt;/app-header&gt;&lt;/div&gt;
    &lt;div class="panel-body"&gt;&lt;app-Content&gt; &lt;/app-Content&gt;&lt;/div&gt;
    &lt;div class="panel-footer"&gt;&lt;app-Footer&gt; &lt;/app-Footer&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>header.component.html</p>
  
  <pre><code>&lt;nav class="navbar navbar-default"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;div class="navbar-header"&gt;
        &lt;a class="navbar-brand" href="#"&gt;WebSiteName&lt;/a&gt;
      &lt;/div&gt;
      &lt;ul class="nav navbar-nav"&gt;
      &lt;nav&gt;
       &lt;a routerLink="/Page1" routerLinkActive="active"&gt;Page1&lt;/a&gt;
       &lt;a routerLink="/Page2" routerLinkActive="active"&gt;Page2&lt;/a&gt;
      &lt;/nav&gt;
       &lt;router-outlet&gt;&lt;/router-outlet&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>app-module.ts also has the routing registerd.. so if I click on link Page1 or Page2 - 
  Note: Routing works fine... no issues there.</p>