I want to include a DELETE request in my angular application. GET and POST works perfect.
Please find the important part of my user.service.ts file below:
deleteMethod(a: A): Promise<any> {
return this.http.delete(this.apiURL, a)
.toPromise()
.catch(this.handleError);
}
If I call the request, I get the following error:
TypeError: options.search.clone is not a function.
Do you have any ideas how to solve it?
Thank you very much for your help!