Closed felicedeNigris closed 8 years ago
One more thing I left out.
In leaderboard.ng.js on line 5 , in the if statement i appended with && to see if the currentUser === event.author
so that "No event currently running shows" instead of dissapearing with no visual cue.
I added two one liners.
In leaderboard.ng.js on line 3. I added
$scope.currentUse
r which is equal to the current userId of the person logged in. I usecurrentUser
to compare it touser.author
which is created when an event is made. In leaderboard.ng.html on line 4. I added ang-show="event.author === currentUser"
This shows the leaderboard to the user who created it by comparing if event.author id is equal to currenUser id.Hope this makes sense?