summaryrefslogtreecommitdiff
path: root/client/js/controllers/status.js
blob: 6bc602a8b735dd1bbe617f93bbaa8d19189cca12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


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

	};

}]);