NullInjectorError: No provider for HttpClient!
@NgModule({ ... imports:[ HttpClientModule ] ... })
Here is what the above code is Doing:
1. Importing the HttpClientModule from @angular/common/http
2. Adding it to the imports array of the @NgModule decorator
Now, we can use the HttpClient service in our components.