I have thins very simple function:
createParams(paramsArray, withToken: boolean): HttpParams {
let params = new HttpParams();
let currentUser = JSON.parse(localStorage.getItem('currentUser'));
params.set('access_token', JSON.stringify(currentUser.token));
return params;
}
When i debug this the params variable does not contain any keys nor values:
What am i doing wrong?