title: Using query string redirect to different page on different module in angular6
body: <p>In my application there are multiple modules.One header bar is in different module which is static.On header bar "Products" option is there.But "Products" page is present in different module.Client requirement to use Query string to click on "product" and pass it to "product" page Component which is in different module.Is it possible??And How can pass it to component??</p>
  
  <p>header Bar option-Below www.example.com is common for all application</p>
  
  <pre><code>&lt;a href="www.example.com?path=product"&gt;Product&lt;/a&gt;
  </code></pre>
  
  <p>And product controller-</p>
  
  <pre><code>export class productComponent implements OnInit {
  
    constructor() { }
  
    ngOnInit() {
    }
  
  }
  </code></pre>