Edit Compute service and home controller
This commit is contained in:
parent
0c31cbdbd4
commit
ff1832adcf
4 changed files with 24 additions and 5 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue