Angular Rate is an AngularJS rating directive.
Optionally: to install with bower, use:
bower install --save angular-rate
Add the module in your angular module.
angular.module('main', ['angularRate']);
Angular rate directive working with the element attribute and using the value from the ng-model.
<rate ng-model="rateValue" class="form-control"></rate>
If you are using bootstrap framework you can also add the class 'form-control' as you will use with an input.
For more advanced functionality you can add a couple of options:
<rate
ng-model = "Number"
icon-empty = "String" (the class name of empty icon, default: 'fa-star-o')
icon-full = "String" (the class name of full icon, default: 'fa-star')
icon-half = "String" (the class name of half icon, default: 'fa-star-half-o')
icon-base = "String" (the class name of base icon, default: 'fa')
other-class = "String" (the other class to be injected for each stars)
readonly = "Boolean" (read only option)
>
</rate>