Indicates whether to defer location change interception. Passing
no parameter is equivalent to true
.
The url path you want to redirect to or a function
rule that returns the url path. The function version is passed two params:
$injector
and $location
services, and must return a url string.
$urlRouterProvider
- $urlRouterProvider
instance
Handler function that takes $injector
and $location
services as arguments. You can use them to return a valid path as a string.
$urlRouterProvider
- $urlRouterProvider
instance
The incoming path that you want to redirect.
The path you want to redirect your user to.
Generated using TypeDoc
object
ui.router.router.$urlRouterProvider
ui.router.util.$urlMatcherFactoryProvider
$locationProvider
$urlRouterProvider
has the responsibility of watching$location
. When$location
changes it runs through a list of rules one by one until a match is found.$urlRouterProvider
is used behind the scenes anytime you specify a url in a state configuration. All urls are compiled into a UrlMatcher object.There are several methods on
$urlRouterProvider
that make it useful to use directly in your module config.