Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which module method registers application-level routes?

  1. A RouterModule.forChild()
  2. B RouterModule.forRoot()
  3. C RouterModule.configure()
  4. D RouterModule.register()
Answer

RouterModule.forRoot()

forRoot is called once at the root and sets up the router service. Feature modules use forChild to add routes without duplicating the service.

All Angular MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as