i have use http.get and http.post and i get a response from them but when i try http.put there is no result ( "return this.http.put(this.apiUpdate, data, httpOptions) " the problem is here i dont know why it doesn't excute it; however it works on backend and i have test it ,
enter code here
apiUpdate: '*********/*****/update';
public update-client(data: Client) {
console.log("client: ",data);
const httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'application/json'
})
};
// let options = new HttpRequestOptions({ headers: headers });
console.log("service");
return this.http.put(this.apiUpdate, data, httpOptions);
}