Improve this Doc View Source RouteDefinition

From Get docs
< Improve this Doc ngComponentRouter‎ | typeAngularjs/docs/1.8/api/ngcomponentrouter/type/routedefinition

Improve this Doc View Source RouteDefinition

  1. type in module ngComponentRouter


In an effort to keep synchronized with router changes in the new Angular, this implementation of the Component Router (ngComponentRouter module) has been deprecated and will not receive further updates. We are investigating backporting the Router for the new Angular to AngularJS, but alternatively, use the ngRoute module or community developed projects (e.g. ui-router).


Each item in the RouteConfig for a Routing Component is an instance of this type. It can have the following properties:

  • path or (regex and serializer) - defines how to recognize and generate this route
  • component, loader, redirectTo (requires exactly one of these)
  • name - the name used to identify the Route Definition when generating links
  • data (optional)

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.