A

Admin • 832.27K Points
Coach

Q. What is the main purpose of `RouterModule.forRoot()`?

  • (A) To configure the application's top-level routes
  • (B) To configure lazy-loaded module routes
  • (C) To register HTTP routes
  • (D) To declare route guards
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

`RouterModule.forRoot()` sets up routes for the root module.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.