Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
insaineyesay committed Oct 24, 2015
1 parent efd4de6 commit ff9ca03
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion public/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
]);

Expand Down

0 comments on commit ff9ca03

Please sign in to comment.