title: How can I set multiple parameters to HttpParams in Angular 5
body: <p>I am trying to send multiple parameters to HttpParams in Angular 5 using the following approach:</p>
  
  <pre><code>            paramsObject: any
              params = new HttpParams();
              for (let key in paramsObject) {
                  params.set(key, paramsObject[key]);
              }
  </code></pre>
  
  <p>This worked in Angular 4, but in Angular 5 since HttpParams is immutable object the params are not being set to HttpParams and null parameters are being passed. Could you let me know how I can set multiple parameters to HttpParams. I am using Angular 5 and TypeScript.</p>