title: How to get query params of a request in interceptor Angular
body: <p>I want to get the query params from an get request. Interceptor code is this way,</p>
  
  <pre class="lang-js prettyprint-override"><code>export class FixtureInterceptor implements HttpInterceptor {
    intercept(req: HttpRequest&lt;any&gt;, next: HttpHandler): Observable&lt;HttpEvent&lt;any&gt;&gt; {
         return next.handle(req);
    }
  }
  </code></pre>
  
  <p>i tried to get the params using get method like this ,</p>
  
  <pre><code>req.params.get('category');
  </code></pre>
  
  <p>but it returns me null always. My api call is this way , </p>
  
  <pre class="lang-js prettyprint-override"><code>getValue() {
       return this.http.get('http://139.49.10.175:3000/laundryItems?category=2&amp;type=4');
  }
  </code></pre>
  
  <p>i need value of category and type from above API call</p>