Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Auth service
Browse files Browse the repository at this point in the history
Added the $window, no need of _this.
  • Loading branch information
sylvainlap committed Jan 27, 2015
1 parent 2bba82e commit 6cfa74e
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions public/modules/users/services/authentication.client.service.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
'use strict';

// Authentication service for user variables
angular.module('users').factory('Authentication', [
function() {
var _this = this;

_this._data = {
user: window.user
};

return _this._data;
}
]);
angular.module('users').factory('Authentication', ['$window', function($window) {
var auth = {
user: $window.user
};

return auth;
}]);

0 comments on commit 6cfa74e

Please sign in to comment.