walnut_launchpad.html/js/controllers/homeController.js

22 lines
542 B
JavaScript

app.controller('HomeController', [
'$rootScope', '$scope', 'Auth', 'localStorageService', '$location', 'azp@oauth3.org'
, function ($rootScope, $scope, Auth, localStorageService, $location, Oauth3) {
var vm = this;
vm.oauth3 = Oauth3.oauth3;
vm.notification = true;
vm.signOut = function () {
localStorageService.remove('userAuth');
$location.path('/splash-page');
};
vm.userName = function(profile){
profile = Auth.getProfile();
return profile.email;
};
throw new Error('loaded home controller');
}]);