For guards that determine whether a module should be loaded or not, the method ______ should return a boolean or an observable that resolves to a boolean.
- canActivate
- canActivateChild
- canDeactivate
- canLoad
When working with guards that determine whether a module should be loaded or not, the canLoad method should return a boolean or an observable that resolves to a boolean. This guard is used to control the lazy loading of feature modules.
Loading...
Related Quiz
- Which option is NOT a valid view encapsulation mode in Angular?
- What allows you to dynamically load and render components in Angular?
- Which of the following is a benefit of using content projection in Angular?
- You're tasked with integrating a third-party date picker library into an Angular application. The date picker doesn't natively support Angular's forms. What should be your approach to ensure it works seamlessly with Angular's form controls?
- You're creating a feedback form where users can rate a product. You want to ensure users provide a rating between 1 to 5. How would you validate the input to ensure values are within this range?