Improve this Doc  View Source

Router

  1. - type in module ngComponentRouter

A Router is responsible for mapping URLs to components.

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.