Read here: https://www.concretepage.com/angular-...
The HttpClient is smaller, easier and powerful library for making HTTP requests. The HttpClient.get() constructs an Observable with configured GET request and when the Observable instance is subscribed, the HTTP GET request is executed on the server.