angular/angular.js — pull request #1745 by joshrtay (2012-12-27 05:59:26+00:00)
Title: Express style route matching

visionmedia/express style route matching.

```javascript
.when('/bar/:foo?)
$location.path('/bar') --> $routePrams: {}
$location.path('/bar/foovalue') --> $routePrams: {foo: 'foovalue'}

.when('/bar/*')
$location.path('/bar/foovalue') --> $routeParams: {0: 'foovalue'}

.when('/bar/*.*)
$location.path('/bar/foo.js') --> $routeParams: {0: 'foo', 1: 'js}

.when(/\/(\d+)/)
$location.path('/12') --> $routeParams; {0: '12'}
```