Skip to content

Instantly share code, notes, and snippets.

@jbmilgrom
Last active February 24, 2016 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbmilgrom/a1ec0e5ae575d4cd9e3e to your computer and use it in GitHub Desktop.
Save jbmilgrom/a1ec0e5ae575d4cd9e3e to your computer and use it in GitHub Desktop.
<i class="icon upvote"
ng-click="vm.user.upvote(vm.answer)"
ng-class="{voted: vm.answer.isVotedFor(vm.user)}">
</i>
{{ vm.answer.voteCount() }}
<i class="icon downvote"
ng-click="vm.user.downvote(vm.answer)"
ng-class="{voted: vm.answer.isVotedAgainst(vm.user)}">
</i>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment