Use angular-cookirs

This commit is contained in:
manzerbredes 2016-02-17 14:01:13 +01:00
parent 8c6b1cecd3
commit 7e5db6b542
19 changed files with 119 additions and 27 deletions

View file

@ -6,9 +6,14 @@
* @param {$scope} $scope The $scope service from angular
* @param {Identity} The Identity service
*/
mainApp.controller('statusCtrl', ['$scope','Identity', function ($scope, Identity)
mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($scope, Identity, $rootScope)
{
$scope.profile=Identity.profile;
$scope.logout=function(){
Identity.logout();
$rootScope.$broadcast('logoutEvent');
};
}]);