Used for configuring routes.
See $route for an example of configuring and using ngRoute.
Requires the ngRoute module to be installed.
$routeProvider();
Adds a new route definition to the $route service.
| Param | Type | Details |
|---|---|---|
| path | string | Route path (matched against
|
| route | Object | Mapping information to be assigned to Object properties:
|
Object |
self |
Sets route definition that will be used on route change when no other route definition is matched.
| Param | Type | Details |
|---|---|---|
| params | Object | Mapping information to be assigned to |
Object |
self |
© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.2.32/docs/api/ngRoute/provider/$routeProvider