1.0.8 • Published 7 years ago

angular-jk-rating-stars v1.0.8

Weekly downloads
202
License
MIT
Repository
github
Last release
7 years ago

AngularJS Rating Stars

Amazing AngularJS 1 Rating Stars directive that works with Angular Material.

Demo : https://embed.plnkr.co/q7pgHz/

Install :

npm

npm install angular-jk-rating-stars

bower

bower install angular-jk-rating-stars

Usage :

  • Add jk-rating-stars.js to your index file:
<script src="angular.js"></script>
<script src="jk-rating-stars.js"></script>
  • Add jk-rating-stars.css to your index file:
<link href="jk-rating-stars.css" rel="stylesheet" type="text/css" />
  • Add the google material icons
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  • Add a dependency to the jkAngularRatingStars module in your application.
angular.module('MyApp', ['jkAngularRatingStars']);
  • Add a jk-rating-stars tag to your html, set the amount of stars and bind a variable that will holds the selected value. If the maxRating variable is not set, we use the default of 5.
<jk-rating-stars max-rating="8" rating="ctrl.rating" read-only="ctrl.readOnly" on-rating="ctrl.onRating(rating)" >
</jk-rating-stars>

TODO :

License

This module is released under the permissive MIT license. Contributions or suggestions are always welcome :D

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago