How can you ensure that a lazily-loaded module is only downloaded when a specific condition is met?
- It's not possible
- Use canActivate guard
- Use loadChildren in the route configuration
- Use resolver for data preloading
To ensure that a lazily-loaded module is downloaded only when a specific condition is met, you can use the loadChildren property in the route configuration.
Loading...
Related Quiz
- In Angular, what is the primary purpose of a component's class?
- What is a potential consequence of not unsubscribing from an observable in an Angular component?
- What does the async pipe do in an Angular template?
- In Angular, the _____ Guard checks whether a route can be deactivated.
- What is the main difference between hot and cold observables in Angular?