Merge pull request #377 from sylvainlap/master

Auth service Refactoring to use $window
This commit is contained in:
Ilan Biala
2015-02-05 06:41:42 -05:00

View File

@@ -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;
}]);