Summary
Enterprise web applications must exchange information with a backend API almost daily. The Angular framework enables applications to communicate with an API over HTTP using the built-in HTTP client. In this chapter, we explored the essential parts of the Angular HTTP client.
We learned how to move away from the traditional fetch
API and use observables to communicate over HTTP. We explored the basic parts of a CRUD application using the Fake Store API as our backend. We investigated how to implement authentication and authorization in Angular applications. Finally, we learned what Angular interceptors are and how we can use them to authorize HTTP calls.
Now that we know how to consume data from a backend API in our components, we can further improve the user experience of our application. In the next chapter, we will learn how to load our components through navigation using the Angular router.