walnut_launchpad.html/js/controllers/homeController.js

22 lines
542 B
JavaScript
Raw Normal View History

2017-08-14 19:54:42 +00:00
app.controller('HomeController', [
2017-08-14 20:04:44 +00:00
'$rootScope', '$scope', 'Auth', 'localStorageService', '$location', 'azp@oauth3.org'
2017-08-14 19:54:42 +00:00
, function ($rootScope, $scope, Auth, localStorageService, $location, Oauth3) {
2017-08-09 18:41:43 +00:00
var vm = this;
2017-08-14 19:54:42 +00:00
vm.oauth3 = Oauth3.oauth3;
2017-08-09 04:23:19 +00:00
2017-08-11 19:21:35 +00:00
vm.notification = true;
2017-08-09 18:41:43 +00:00
vm.signOut = function () {
localStorageService.remove('userAuth');
$location.path('/splash-page');
2017-08-10 17:36:59 +00:00
};
2017-08-09 17:28:36 +00:00
2017-08-11 15:09:41 +00:00
vm.userName = function(profile){
profile = Auth.getProfile();
return profile.email;
};
2017-08-10 17:36:59 +00:00
2017-08-14 23:00:01 +00:00
throw new Error('loaded home controller');
2017-08-08 20:54:25 +00:00
}]);