πŸ“Š Angular
Q. What is the role of the RouterModule.forRoot() method?
  • (A) To create a new module
  • (B) To define routes at the root level
  • (C) To provide form support
  • (D) To register a service globally
πŸ’¬ Discuss
βœ… Correct Answer: (B) To define routes at the root level

Explanation: RouterModule.forRoot() sets up routing for the root app module.

Explanation by: Mr. Dubey
RouterModule.forRoot() sets up routing for the root app module.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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