πŸ“Š Angular
Q. How can you lazy-load a module in Angular?
  • (A) Using loadChildren in route configuration
  • (B) Using ngIf on module
  • (C) Using setTimeout
  • (D) By dynamically importing it in app.module.ts
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using loadChildren in route configuration

Explanation: Lazy loading is configured with the `loadChildren` property in routes.

Explanation by: Mr. Dubey
Lazy loading is configured with the `loadChildren` property in routes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
49
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate