Check out three new chapters of our blog post on Consuming a REST Services with Angular
- First, we will separate the HttpClient Service in its own file
- we will move some functionality from HTTP Template to the component
- and we will use HttpClient Interceptors
- for adding headers in outgoing requests (e.g. for authentication)
- and for normalizing HttpCient responses by manipulating the bodies of incoming responses