searchItem Contain some value like abc+def. when i am checking in backend its going like (abc def). how to fixed .+(plus sign convert into space)
search(searchItem: string): Promise<any> {
let params = new HttpParams();
params = params.append('searchItem', searchItem);
return new Promise((resolve, reject) => {
// use For Testing
this.httpClient.get(this.urlService.getApiUrl() + 'test/item',
{
params: params
})
.subscribe(data => {
resolve(data);
}, error => {
console.log('Error: ' + JSON.stringify(error));
reject(error);
});
});
}