ngComponentRouter.Router

  1. type in module ngComponentRouter

A Router is responsible for mapping URLs to components.

  • Routers and "Routing Component" instances have a 1:1 correspondence.
  • The Router holds reference to one or more of Outlets.
  • There are two kinds of Router: RootRouter and ChildRouter.

You can see the state of a router by inspecting the read-only field router.navigating. This may be useful for showing a spinner, for instance.

doc_AngularJS
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.