Client-server communication is at the heart of any modern web application. In this course we will take a look at how to communicate with your backend API in Angular, specifically with the new Http module(@angular/common/http
) introduced and used in Angular 4.3.1
and later.
We will learn how to configure the HttpClientModule
, how to fetch and send data, customize HTTP headers that are being sent and how to properly handle error responses.
We will also take a look at some more advanced use cases such as listening to progress events and intercepting HTTP calls. Finally we will also learn how to isolate and mock HTTP calls in automated unit tests.