export class OrderService {
    constructor(private httpClient: HttpClient) { }
    addOrder(order: Order) {
    // Missing line
    }
}
  •  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();

By Neha S

Leave a Reply

Your email address will not be published.