angular-input-stars

Create rating inputs easily
Homepage:
5 people use it
Author: 4994258?v=3 rcbytes

Welcome

Readme with formatted code: https://github.com/rcbytes/angular-input-stars/blob/master/readme.md

With this directive you can build rating inputs easily.

Look! A demo!

Installation via bower

bower install angular-input-stars

Use

<input-stars max="5" ng-model="YourCtrl.property"></input-stars>

You can customize the full, empty and base icon classes via attributes

<input-stars max="5" icon-full="fa-circle" icon-base="fa fa-fw" icon-empty="fa-circle-o" ng-model="YourCtrl.property"></input-stars>

Unlike icon-base, on icon-full and icon-empty you must specify only one class.

The .css file is optional and it is a bootstrap for customizations.

Dependencies

This directive uses FontAwesome as fallback if you don't specify any icon class.

License

MIT License © Rafael Mello Campanari

comments powered by Disqus
This page was last updated over 2 years ago.