istic-openstack/client/js/controllers/status.js
2016-02-24 15:22:10 +01:00

20 lines
436 B
JavaScript

/**
* 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)
{
// Give profile to model
$scope.profile=Identity.getProfile();
// Function to logout
$scope.raiseLogoutEvent=function(){
$rootScope.$broadcast('logoutEvent');
};
}]);