πŸ“Š Angular
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

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