$routeProvider (service in module ui.router.compat )

Description

$routeProvider of the ui.router.compat module overwrites the existing routeProvider from the core. This is done to provide compatibility between the UI Router and the core router.

It also provides a when() method to register routes that map to certain urls. Behind the scenes it actually delegates either to $urlRouterProvider or to the $stateProvider to postprocess the given router definition object.

Dependencies

Methods