Angular - Routing
Which Angular route guard is best suited to block navigation away from a component when there are unsaved form changes?
canDeactivate is designed to prevent leaving a route under certain conditions.canActivate controls entering routes, resolve pre-fetches data, and canLoad controls lazy loading.canDeactivate -> Option BcanDeactivate guard [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions