se-hub/templates/js/services/dataService.js

21 lines
354 B
JavaScript
Raw Permalink Normal View History

2015-06-17 18:00:37 +00:00
var DEBUG = true;
angular.module('seHub.services').
factory('dataService', ['$http', function($http) {
var scope = null;
return {
initService: function(mainScope) {
// this.token = user.seToken;
// this.user = user;
scope = mainScope;
},
userBrodcast: function(user) {
scope.user = JSON.parse(JSON.stringify(user));
}
};
}]);