You want to track the time taken for a user to navigate from one page to another in your Angular application. Which Router Events can be useful for this purpose?

  • NavigationEnd and RoutesRecognized
  • NavigationStart and NavigationCancel
  • NavigationStart and NavigationEnd
  • NavigationStart and NavigationError
To track the time taken for navigation, you can use NavigationStart and NavigationEnd Router Events. The NavigationStart event marks the start of navigation, and NavigationEnd marks the end. Combining them allows you to measure the time taken.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *