Defines a path that is used when an invalid route is requested.
Defines a path that is used when an invalid route is requested. $path : The url path you want to redirect to
Defines a path that is used when an invalid route is requested.
Defines a path that is used when an invalid route is requested. The function rule that returns the url path. The function is passed two params: $injector and $location services, and must return a url string.
$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.