Q. How can you create a lazy-loaded module in Angular?

  • (A) By importing the module in AppModule
  • (B) By defining the module path with loadChildren in routing
  • (C) By adding the module to declarations
  • (D) By using @LazyLoad decorator
πŸ’¬ Discuss
βœ… Correct Answer: (B) By defining the module path with loadChildren in routing
Explanation: Lazy loading modules is done by setting loadChildren with the module's path in routes.
Explanation by: Mr. Dubey
Lazy loading modules is done by setting loadChildren with the module's path in routes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
100
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate