From the course: Angular Essential Training (2019)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

The Angular HttpClient

The Angular HttpClient - Angular Tutorial

From the course: Angular Essential Training (2019)

Start my 1-month free trial

The Angular HttpClient

- [Instructor] Angular has an NG module named HttpClientModule, for working with HTTP calls from the client. This is an optional module that you can choose to include or not in your Angular apps. If you don't need to make HTTP calls, you can leave this module out and it will keep your overall application bundle size smaller. And when you do need to make HTTP calls, you can import this module and make use of it. To make use of the HttpClientModule, you need to add it to the list of imports for your Angular module. In the app.module.ts file, we can add a new import statement and bring in the HttpClientModule from @angular/common/http. Then we can add the HttpClientModule to the imports, metadata property array. This NG module includes services and types that you can use to do HTTP work. In the upcoming videos, we will be making use of some of these services.

Contents