Q. What does the RouterModule.forRoot() method do?

  • (A) Configures the root routes for the application
  • (B) Defines lazy loaded routes
  • (C) Starts the Angular application
  • (D) Registers services
πŸ’¬ Discuss
βœ… Correct Answer: (A) Configures the root routes for the application
Explanation: forRoot() sets up the main routes for the app.
Explanation by: Mr. Dubey
forRoot() sets up the main routes for the app.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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