1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-13 12:43:59 +02:00

docs(angular): add setting up http client content (#6525)

This commit is contained in:
J. Degand
2024-08-13 04:07:21 -04:00
committed by GitHub
parent fad50453bc
commit b6839e29af

View File

@@ -1 +1,8 @@
# Setting Up the Client
Before you can use `HttpClient` in your app, you must configure it using dependency injection. `HttpClient` is provided using the `provideHttpClient` helper function, which most apps include in the application providers in `app.config.ts`. If your app is using NgModule-based bootstrap instead, you can include `provideHttpClient` in the providers of your app's `NgModule`.
Visit the following resources to learn more:
- [@official@Angular Official Docs - Setting up HttpClient](https://angular.dev/guide/http/setup)
- [@video@Setting up HttpClient in Angular (NgModule)](https://www.youtube.com/watch?v=hBFtim1vO3M)