Read here: https://www.concretepage.com/angular/...
HttpClient performs HTTP requests in Angular. The HttpClient.post() constructs an Observable with configured HTTP POST request and when the Observable instance is subscribed, POST request is executed on the server.