Created
September 1, 2015 13:50
-
-
Save davinkevin/be97c218b0c80edc97b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template: '<ul class="rating">' + | |
'<li ng-repeat="star in stars" class="filled">' + | |
'\u2605' + | |
'</li>' + | |
'</ul>', |
Rating CSS
.rating{color: #a9a9a9;margin: 0;padding: 0;}
ul.rating {display: inline-block;}
.rating li {list-style-type: none;display: inline-block;padding: 1px;text-align: center;font-weight: bold;cursor: pointer;}
.rating .filled {color: #8b1200;}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Star rating template