Add comments and correct some bugs
This commit is contained in:
parent
21b68f1da1
commit
8e700c2b7d
6 changed files with 59 additions and 68 deletions
|
@ -6,16 +6,14 @@
|
|||
* @param {$scope} $scope The $scope service from angular
|
||||
* @param {Identity} The Identity service
|
||||
*/
|
||||
mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($scope, Identity, $rootScope)
|
||||
{
|
||||
mainApp.controller('statusCtrl', ['$scope', 'Identity', '$rootScope', function ($scope, Identity, $rootScope)
|
||||
{
|
||||
// Give profile to model
|
||||
$scope.profile = Identity.getProfile();
|
||||
|
||||
|
||||
// Give profile to model
|
||||
$scope.profile=Identity.getProfile();
|
||||
|
||||
// Function to logout
|
||||
$scope.logout=function(){
|
||||
Identity.logout();
|
||||
};
|
||||
// Function to logout
|
||||
$scope.logout = function () {
|
||||
Identity.logout();
|
||||
};
|
||||
|
||||
}]);
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue