When I change the page ,I home the web app shows the progress,when new page loaded finish,the pregress disappear,it looks like the picture below.

I have a way to realize the goal.
Create a service,then add providers in every page component.Secondly,implements OnDestroy and OnAfterContentChecked.In ngOnDestroy,inform the service start the progress,in ngOnAfterContentChecked,inform the service stop the progress.
But that's too troublesome.I think there has a better way to realize the target.Who can help me? Or recommand me a plugin.
NavigationStartevent is fired show progress bar and then when theNavigationEndevent is fired hide progress bar.