Progress Bar Service
class ProgressBarService
Last updated
class ProgressBarService
Last updated
This service manages the visibility of the MatProgressBar
element in the App Component.
It:
Hides the progress bar when requested.
Shows the progress bar when requested.
Emits the progress bar configuration.
This progress bar can be used to indicate the progress of overarching journeys like login. It should be used in complement with other progress indicators on a page that indicate local progress.
Recipe: Use the different modes of the progress bar, as demonstrated in the examples, to distinguish between primary and secondary activities, thereby improving transparency for users.
Recipe: Integrate this service with an HttpInterceptor to automatiaclly hide and show the progress bar on a network request.