What is the RouterModule.forRoot method used for?

  •  Registering any providers that you intend to use in routed components.
  •  Registering route definitions at the root application level.
  •  Indicating that Angular should cheer on your routes to be successful.
  •  Declaring that you intend to use routing only at the root level.

Leave a Reply

Your email address will not be published. Required fields are marked *