Centralized Loading Indicator
Explore how to build a centralized loading indicator for complex web applications using RxJS. Understand how to manage asynchronous loading states across UI components, reduce code duplication, and handle HTTP request status updates through a centralized service.
We'll cover the following...
Centralized loading indicator scenario
Suppose you are building an enterprise web application with a rich user interface (UI). The UI will consist of several components that consist of independent logic and make requests to the back end. Since each request may take some time, in many cases, it’s best to notify the user that an action, that might take some time, is actually happening in the background. For our scenario, I have created a high-level architecture of a web application where the users can write code, save it, modify it, and export it as a project to be loaded locally. The UI can consist of ...