Used for configuring routes.
See $route for an example of configuring and using ngRoute
.
Requires the ngRoute
module to be installed.
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 string | Mapping information to be assigned to |
Object |
self |
A boolean property indicating if routes defined using this provider should be matched using a case insensitive algorithm. Defaults to |
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.5.11/docs/api/ngRoute/provider/$routeProvider