In Angular's routing, which guard determines whether a module can be lazily loaded?
- CanActivate
- CanDeactivate
- CanLoad
- Resolve
In Angular's routing, the CanLoad guard determines whether a module can be lazily loaded. This guard is used to protect routes that are loaded on-demand, typically through lazy loading, and it checks conditions before allowing the module to load. CanActivate is used to determine if a route can be activated, but it doesn't control lazy loading.
Loading...
Related Quiz
- A client asks for a feature where a child component should be able to inform its parent component when a button inside the child component is clicked. How would you implement this interaction?
- When testing asynchronous operations in Angular, which utility can be used to handle asynchronous tasks inside test specs?
- In Angular's hierarchical dependency injection, the _____ is the first injector that is checked when trying to resolve a service dependency.
- When you want to get only the first emitted value from an Observable and then complete, you should use the ________ operator.
- When you want to cancel a subscription to an Observable, you call the ________ method on the subscription object.