Question: How can you use the HttpClient to send a POST request to an endpoint from within an addOrder function in this OrderService?
- this.httpClient.url(this.orderUrl).post(order);
- this.httpClient.send(this.orderUrl, order);
- this.httpClient.post
(this.orderUrl, order); - this.httpClient.post
(this.orderUrl, order).subscribe();
Answer: The correct answer of the above question is Option D:this.httpClient.post