opitzconsulting/angular-jqm — pull request #87 by ajoslin (2013-07-21 18:14:18+00:00)
Title: feat(routeProvider): allow fully injectable transition function

Basically it will take a similar form to `resolve`, and also be injected with locals $routeParams and $scope ($scope would be viewport's scope).

```js
$routeProvider.when('/page', {
transition: ['$scope', function($scope) {
if ($scope.$panel.right.opened) {
return 'none';
}
return 'slide';
};
}]
});
```