Skip to content

frontend: Vote

Emilie Hester edited this page Mar 28, 2017 · 1 revision

The vote directive functions no differently than Reddit's upvote or facebook's like button.

  • Clicking the button creates a new object in the database with a foreign key associated with that button's particular resource
  • Only logged-in users can increment the number of votes for any resource
  • A user can only vote for any single resource once.

Clone this wiki locally