Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 631 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 631 Bytes

star-rating

Star Rating (Google Polymer based component)

This is a polymer based component. I call it 'star-rating'.

Usage:

<star-rating></star-rating>

Output:

*
**
***
****
*****

Options:

  • max-rating: Max rating a user can give. Default value is 5.
  • user-rating: Default user rating is 0. It is in sync with user rating or rating given by the user.

How to test?

Clone this project.
Install polymer-cli and nodejs6 or 7
Go to directory 'star-rating/polymersample' and run 'polymer serve'.
Once server is up, go to url 'http://127.0.0.1:8081/components/star-rating/‘

Enjoy!!