title: Pass query params in 'Router module' Routes array and read in component
body: <p>I'm trying to differentiate between the sample companies and other companies. So I'm passing query params to check if it is sample company and check the query param sample if it is true in Route array like this </p>
  
  <pre><code>const routes: Routes = [{ path: '',
      component: DefaultComponent,
      children: [
          {path: 'company', redirectTo: 'company-data/1?sample=true'},
          {path:'company/:id', component: CompanyComponent}
  ]}];
  </code></pre>
  
  <p>How can I read this query param in component and fetch true value for sample company and for other companies that sample will be false. I get undefined if I try to fetch it like this </p>
  
  <pre><code>this.route.queryParams.subscribe(params =&gt; {
      console.log('Query params ',params['sample']) 
  });
  </code></pre>
  
  <p>I don't know if this is right way.                  </p>