-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when displaying half stars #24
Comments
Hi, Thanks EDIT : I made a codepen to show how to use the directive, telle me if it helps : |
The issue occurs if the rate comes after the init, i'm having the same issue. So lets say you want to fetch the rating trough a database, and then set the rating.rate it rounds up (acts like a click) |
Hi, |
Fix delayed half star display (issue #24)
Hi guys, I am using the latest version (from
master
) of ionic-rating and I had a issue with that. I don't know much how to explain, but I know it's related with variable scoping.In a screen I show user data I have something like:
$scope.user = {id: 1, name: 'Foo', rating: 2.5}
In template if I use like below, It only shows 3 stars (the last
<i>
get the classion-ios-star
):<rating class="xs-rating" ng-model="user.rating" max="5" readonly="true"></rating>
I got to do it to work:
<rating ng-repeat="c in ratings" class="xs-rating" ng-model="c" max="max" readonly="true"></rating>
I hope it may help. Thanks.
The text was updated successfully, but these errors were encountered: