The ______ guard is used to decide if the current route can be deactivated.
- CanActivate
- CanActivateChild
- CanDeactivate
- CanLoad
In Angular, the CanDeactivate guard is used to decide if the current route can be deactivated. It's often used to prompt users for confirmation before leaving a page with unsaved changes.
Loading...
Related Quiz
- For multicasting a single source to multiple subscribers, one should use a ________ in RxJS.
- In a scenario where you need to load some configuration data before determining if a route can be activated, which guard would be the most appropriate to use?
- To make a service available only within a specific module, set the providedIn property to the ________ of that module.
- You are developing an Angular application where a child component needs to notify its parent component about certain events. Which mechanism would you use?
- In a Route Guard, to navigate to a different route due to an authorization failure, you would typically use the router.______ method.