You want to implement a feature that prompts the user if they try to navigate away from a form without saving changes. Which Route Guard would you use to achieve this?

  • CanActivate Route Guard
  • CanDeactivate Route Guard
  • CanLoad Route Guard
  • Resolve Route Guard
To prompt the user when navigating away from a form, you should use the CanDeactivate Route Guard. It checks if the form can be deactivated without saving changes.
Add your answer
Loading...

Leave a comment

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