Edit Compute service and home controller

This commit is contained in:
manzerbredes 2016-02-22 17:30:25 +01:00
parent 0c31cbdbd4
commit ff1832adcf
4 changed files with 24 additions and 5 deletions

View file

@ -8,8 +8,11 @@
*/
mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($scope, Identity, $rootScope)
{
// Give profile to model
$scope.profile=Identity.profile;
// Function to logout
$scope.logout=function(){
Identity.logout();
$rootScope.$broadcast('logoutEvent');