title: subscribe route params in a component outside of router outlets component
body: <p>I have a toolbar component aligned above a router outlet. The router outlet has various components like table and chart. </p>
  
  <p>Am able to subscribe to route params in any of the components that are displayed using a router outlet. </p>
  
  <p>I want to access route params  from toolbar component which is not part of outlet. (capture current path to show name of route on toolbar)</p>
  
  <p>Main component : </p>
  
  <pre><code>  &lt;app-toolbar&gt; &lt;/app-toolbar&gt;
    &lt;router-outlet&gt; &lt;/router-outlet&gt; // shows either a table or chart component
  </code></pre>
  
  <p>toolbar component: </p>
  
  <pre><code> export class ToolbarComponent {
     constructor(private route: ActivatedRoute) {
        this.route.subscriber(params =&gt; 
            { console.log(params) //param is empty }
     }
   }
  </code></pre>
  
  <p>Table component:</p>
  
  <pre><code> export class TableComponent{
         constructor(private route: ActivatedRoute) {
            this.route.subscriber(params =&gt; 
                { console.log(params) //param has data }
         }
       }
  </code></pre>