walnut_launchpad.html/js/controllers/HomeController.js

19 lines
439 B
JavaScript
Raw Normal View History

2017-08-10 17:36:59 +00:00
app.controller('HomeController', ['$scope', 'Auth', 'localStorageService', '$location', '$rootScope', function ($scope, Auth, localStorageService, $location, $rootScope) {
2017-08-09 18:41:43 +00:00
var vm = this;
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-08 06:35:11 +00:00
2017-08-08 20:54:25 +00:00
}]);