There are a lot of router event which help us to track the lifecycle of router. The sequence of router events is: NavigationStart, RouteConfigLoadStart, RouteConfigLoadEnd, RoutesRecognized, GuardsCheckStart, ChildActivationStart, ActivationStart, GuardsCheckEnd, ResolveStart, ResolveEnd, ActivationEnd, ChildActivationEnd, NavigationEnd, NavigationCancel ,NavigationErrorFor more reference visit this link https://angular.io/api/router/Event
https://angular.io/guide/router