This directive allows you to enhance your rating feature in the application with behaviour from the jquery.rateyo library.
- Install Grunt and Bower
$ npm install -g grunt-cli bower
- Install development dependencies
$ npm install
- Install components
$ bower install
- Profit! # Usage
We use bower for dependency management. Install angular-rating-yo into your project by running the command
$ bower install angular-rating-yo
If you use a
bower.json file in your project, you can have Bower save ui-select2 as a dependency by passing the
--save flag with the above command.
This will copy the angular-rating-yo files into your
bower_components folder, along with its dependencies. Load the script files in your application:
<link rel="stylesheet" href="bower_components/jquery-rateyo/src/jquery.rateyo.css">
jquery must be loaded before
angular so that it doesn't use
Add the rateYo module as a dependency to your application module:
Apply the directive to your rating elements:
All the rateYo options can be passed through the directive. You can read more about the supported list of options and what they do on the rateYo Documentation Page
Some times it may make sense to specify the options in the template file.