In Angular, the _____ Guard checks whether a route can be deactivated.
- CanActivate
- CanActivateChild
- CanDeactivate
- CanLoad
In Angular, the CanDeactivate Guard checks whether a route can be deactivated, allowing you to confirm or prevent the user's navigation away from the current route.
Loading...
Related Quiz
- What is the main difference between Observables and Promises in Angular?
- How can you ensure that a service provides a single, shared instance across an entire Angular application?
- The RxJS operator _____ is used to delay the emissions from an Observable.
- Imagine you're building an Angular application that involves creating a directive to apply dynamic styling to elements. How can you pass values to your custom directive to make it reusable across different elements?
- You are tasked with improving the performance of an Angular application. One strategy is to split the application into smaller, feature-specific modules. How would you implement lazy loading for these modules?