2017-08-10 11:36:59 -06:00
|
|
|
app.controller('HomeController', ['$scope', 'Auth', 'localStorageService', '$location', '$rootScope', function ($scope, Auth, localStorageService, $location, $rootScope) {
|
2017-08-09 12:41:43 -06:00
|
|
|
var vm = this;
|
2017-08-08 22:23:19 -06:00
|
|
|
|
2017-08-09 12:41:43 -06:00
|
|
|
vm.signOut = function () {
|
|
|
|
|
localStorageService.remove('userAuth');
|
|
|
|
|
$location.path('/splash-page');
|
2017-08-10 11:36:59 -06:00
|
|
|
};
|
2017-08-09 11:28:36 -06:00
|
|
|
|
2017-08-09 12:41:43 -06:00
|
|
|
function userAuth() {
|
|
|
|
|
return JSON.parse(localStorageService.get('userAuth'));
|
|
|
|
|
}
|
2017-08-09 11:28:36 -06:00
|
|
|
|
2017-08-10 11:36:59 -06:00
|
|
|
|
|
|
|
|
|
2017-08-08 00:35:11 -06:00
|
|
|
|
2017-08-08 14:54:25 -06:00
|
|
|
}]);
|