Angular 4.3 - HttpClient set params : <pre><code>let httpParams = new HttpParams().set('aaa', '111');
httpParams.set('bbb', '222');
</code></pre>

<p>Why this doesn't work?
It only set the 'aaa' and NOT the 'bbb'</p>

<p>Also, I have an object { aaa: 111, bbb: 222 }
How can I set all the values without looping?</p>

<p>UPDATE (this seems to work, but how can avoid the loop?)</p>

<pre><code>let httpParams = new HttpParams();
Object.keys(data).forEach(function (key) {
     httpParams = httpParams.append(key, data[key]);
});
</code></pre>
