title: How to pass URLSearchParams in the HttpClient "get" method - Angular 5
body: <p>I used <strong>Angular 4.2</strong> with the <strong>Http</strong> service and I used the get method like this where params is a URLSearchParams object:</p>
  
  <pre><code>this.http.get(url, {headers: this.setHeaders(), search: params})
  </code></pre>
  
  <p>I want to migrate to <strong>Angular 5</strong>.
  http is now a <strong>HttpClient</strong> object like recommended by the angular team.
  I got an error with the 'search' key.</p>
  
  <p>Do you know how to migrate Http to HttpClient service in my case?</p>
  
  <p>Thank you.</p>