What is the purpose of a lazy-loaded module in Angular?
- To decrease initial bundle size
- To ensure a module is always loaded
- To improve application performance
- To simplify routing configuration
The purpose of a lazy-loaded module in Angular is to decrease the initial bundle size by loading the module on-demand, typically when a user navigates to a specific route. This helps improve application performance.
Loading...
Related Quiz
- When a service is provided at the root level, it is available throughout the entire _____.
- How can you ensure that your custom pipe is recalculated only when the input values change?
- You are building an admin panel where certain routes should only be activated if the user has the required permissions. How can you utilize Route Resolvers to ensure that the data indicating permission is fetched before navigation?
- To manually check a component and its children, you can inject the _____ service and call its detectChanges() method.
- To set up the testing environment before running any test suite in Protractor, you can utilize the _____ function in the configuration file.