angular-kudos

the angular-kudos directive is a svbtle-style kudos implementation with AngularJS, this repo is an example of how it could be used with Firebase
1 person uses it
Author: 9a8f7b851060329fde5a396364c8f02e?d=https%3a%2f%2fidenticons.github.com%2f4229f90eaee9587f761fe3d0c10c5915 oojr

angular-kudos directive

Demo Page

A svbtle-style kudos implementation with AngularJS and Firebase

Getting Started

  1. include angular.js ,ngStorage.js , angular-kudos.js and kudos.css into your HTML
  2. include angular-kudos in your application's module dependencies.
  3. Use the og-kudos directive.

Example

This alone would work but it needs a little extra configuration (see attributes) for persistence.

Attributes

og-kudos-id

You can give a kudo a unique id to track if a user already voted on a kudo with the particular id, it could take a string or an {{}} expression

Example:

og-kudos-count

You could return a number of how many kudos were filled in with this attribute, it could take a string or an {{}} expression

Example:

og-kudos-done

You can pass in a function for when a kudos action is complete with this attribute

Example:

Controller

an example controller that has angular-kudos and firebase as a dependency can be found here

Credits

License

MIT

comments powered by Disqus
This page was last updated almost 4 years ago.