diff --git a/public/javascript/app.js b/public/javascript/app.js index 2394955..b924446 100644 --- a/public/javascript/app.js +++ b/public/javascript/app.js @@ -36,9 +36,16 @@ ngModule('globalNav', []) } }) .controller('globalNavController', [ - '$scope', 'eventsService', function ($scope, eventsService) { + '$scope', 'eventsService', '$location', function ($scope, eventsService, $location) { var self = this; + self.location = $location.$$path; + if(self.location.includes('/donate')) { + $scope.donateLink = true; + } + if(self.location.includes('/events')) { + $scope.eventsLink = true; + } } ]);