function inherit(parent, extra) {
    return angular.extend(new (angular.extend(function() {}, {prototype:parent}))(), extra);
  }
@ngdoc object
@name ngRoute.$routeProvider
@function

@description

Used for configuring routes.

## Example
See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`.

## Dependencies
Requires the {@link ngRoute `ngRoute`} module to be installed.