angular/angular.js — pull request #4192 by geddski (2013-09-29 07:38:32+00:00)
Title: feature (ngRoute) expose #parseRoute as public function

`$route.parseRoute` should be public, allowing you to determine which
route a given path will return. This lets you store meta data in your
routes config, and take action (or cancel event) before the route changes.

Example use case
Add a `feature` property to each route:

```
$routeProvider.when('/profile', {feature: 'profile', template: 'profile.html', controller:
'ProfileCtrl' });
```
And only allow navigation to that route if the user has permission for
that feature.