Last Updated on: (senast uppdaterad på:)
Submitting to backend. The response type is set to <any>
so it handle any properties returned in the response.
this.http.post<any>('http://localhost:8080/getCustomerOrder', { name: 'Angular POST Request Example' }).subscribe(data => { console.log("- data id" + data.id);
Full example can be found at:
https://jasonwatmore.com/post/2019/11/21/angular-http-post-request-examples