I am using angular CLI.
How to delete the token param name and value?
let params = new HttpParams();
params = params.append('siteId', 1);
params = params.append('orgId', 2);
params = params.append('token', 3);
This is my code so far:
validate(email) {
let params = new HttpParams();
params = params.set('email', email);
params = params.set('siteId', this._global.SITEID);
params = params.set('orgId', this._global.ORGID);
params = params.set('domainName', this._global.DOMAIN_NAME);
params = params.set('token', this._global.getRandomUuid());
params.delete('domainName',this._global.DOMAIN_NAME);
return this.api.call('member/duplicate', params);
}
call(url, params) {
// here I want to delete the token param name and value.
}