From ff9ca03c3e3302b9c13e73cb7774aee6752d6c80 Mon Sep 17 00:00:00 2001 From: MIchael Agee Date: Sat, 24 Oct 2015 13:00:55 -0400 Subject: [PATCH] Update app.js --- public/javascript/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; + } } ]);