istic-openstack/client/js/controllers/status.js

20 lines
396 B
JavaScript
Raw Normal View History

2016-01-31 11:47:13 +01:00
2016-02-06 12:10:04 +01:00
/**
* The status controller
*
* @param {$scope} $scope The $scope service from angular
2016-02-10 21:45:52 +01:00
* @param {Identity} The Identity service
2016-02-06 12:10:04 +01:00
*/
2016-02-17 14:01:13 +01:00
mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($scope, Identity, $rootScope)
2016-02-05 19:35:38 +01:00
{
$scope.profile=Identity.profile;
2016-02-17 14:01:13 +01:00
$scope.logout=function(){
Identity.logout();
$rootScope.$broadcast('logoutEvent');
};
}]);