Skip to content

Commit

Permalink
fix: stabilize application
Browse files Browse the repository at this point in the history
  • Loading branch information
Amande Felix Olaoluwa authored and Amande Felix Olaoluwa committed Apr 18, 2018
1 parent 41cd6e7 commit 0c69ebc
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions public/js/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,21 @@ angular.module('mean.directives', [])
restrict: 'EA',
templateUrl: '/views/scoreboard.html',
link: () => {}
})).directive('timer', function(){
return{
restrict: 'EA',
templateUrl: '/views/timer.html',
link: function(scope, elem, attr){}
};
}).directive('landing', function() {
return {
restrict: 'EA',
link: (scope) => {
}))
.directive('timer', () => ({
restrict: 'EA',
templateUrl: '/views/timer.html',
link: () => {}
}))
.directive('landing', () => ({
restrict: 'EA',
link: (scope) => {
scope.showOptions = true;
if (window.localStorage.userData) {
scope.showOptions = false;
} else {
scope.showOptions = true;
if (window.localStorage.userData) {
scope.showOptions = false;
} else {
scope.showOptions = true;
}
}
};
});
}
}));

0 comments on commit 0c69ebc

Please sign in to comment.