Summary
In this chapter, we explored the interceptor feature in Angular and the possibilities that this feature can give our team. We learned how to attach the authentication token to the requests without having to change all the services in our project. We also worked on changing the URL of the request, making our project more flexible to its execution environment.
We also improved our users’ experience by creating a loader in case their internet is slow and notifying them on the screen when a new entry is registered in their gym diary. Finally, we created a simple example of telemetry using a custom header to give the team the ability to select which requests are telemetry capable.
In the next chapter, we’ll explore RxJS, the most powerful library in the Angular utility belt.