Use angular-cookirs
This commit is contained in:
parent
8c6b1cecd3
commit
7e5db6b542
19 changed files with 119 additions and 27 deletions
|
@ -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');
|
||||
|
||||
};
|
||||
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue