$urlRouterProvider (service in module ui.router.router )

Description

$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.

Dependencies

Methods