diff --git a/index.html b/index.html index 4b764e8..2ee5511 100644 --- a/index.html +++ b/index.html @@ -217,9 +217,9 @@

Activate the HTML5 mode

// app/scripts/app.js
-angular.module('newProjectApp').config(function($locationProvider) {
+angular.module('newProjectApp').config(['$locationProvider', function($locationProvider) {
   $locationProvider.html5Mode(true).hashPrefix('!');
-});
+}]);

OAuth 2.0 Server

@@ -340,9 +340,9 @@

HTML5 mode ON

The oauth directive works just straight when the HTML5 mode is active.

<script>
-  angular.module('app').config(function($locationProvider) {
+  angular.module('app').config(['$locationProvider', function($locationProvider) {
     $locationProvider.html5Mode(true).hashPrefix('!');
-  });</script>
+ }]);

HTML5 mode OFF

@@ -356,12 +356,12 @@

HTML5 mode OFF

$routeProvider .when('/access_token=:accessToken', { template: '', - controller: function ($location, AccessToken) { + controller: ['$location', 'AccessToken', function($location, AccessToken) { var hash = $location.path().substr(1); AccessToken.setTokenFromString(hash); $location.path('/'); $location.replace(); - } + }] }) ...