abuecker/oauth-ng — pull request #2 by abuecker (2014-11-04 01:05:49+00:00)
Title: Fix/hashbang

Adds support to ```AccessToken.set()``` to check for hashbang or html5mode and set the the token from the path accordingly.

This would change the special route configuration for hashbang mode from:

```javascript
angular.module('app').config(function ($routeProvider) {
$routeProvider
.when('/access_token=:accessToken', {
template: '',
controller: function ($location, AccessToken) {
var hash = $location.path().substr(1);
AccessToken.setTokenFromString(hash);
$location.path('/');
$location.replace();
}
})
```
to:
```javascript
angular.module('app').config(function ($routeProvider) {
$routeProvider
.when('/access_token=:accessToken', {
template: '',
controller: function (AccessToken) {
AccessToken.set();
}
})
```

Also added hashbang route support to the Karma tests.