title: How do I get the query parameter from paramMap in Angular 5?
body: <p>How do I get the query parameter from paramMap in Angular 5?</p>
  
  <p>This code doesn't work as I'm trying to assign the value to void.  I want to chain additional calls in the switchmap that rely on the id.</p>
  
  <pre><code>    this.route.paramMap
      .switchMap((params: ParamMap) =&gt;
          console.log(params.get('id'));
  </code></pre>