19 lines
		
	
	
		
			439 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			439 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| app.controller('HomeController', ['$scope', 'Auth', 'localStorageService', '$location', '$rootScope', function ($scope, Auth, localStorageService, $location, $rootScope) {
 | |
|   var vm = this;
 | |
| 
 | |
|   vm.notification = true;
 | |
| 
 | |
|   vm.signOut = function () {
 | |
|     localStorageService.remove('userAuth');
 | |
|     $location.path('/splash-page');
 | |
|   };
 | |
| 
 | |
| 
 | |
|   vm.userName = function(profile){
 | |
|     profile = Auth.getProfile();
 | |
|     return profile.email;
 | |
|   };
 | |
| 
 | |
| 
 | |
| }]);
 |