You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
When using the star rating, the rating doesn't handle fractions correctly, causing ratings like 7.1 to be displayed as 8 stars, instead of applying a rounding.
I'm not sure how to fix it, but the problem is caused by the rating.html, in this code:
$index < value
When applying rounding here, this would work, but I'm not sure how I can inject Math into this template. If someone can explain me how, I don't mind creating a pull request with appropriate tests.
The text was updated successfully, but these errors were encountered:
- Moved rounding logic into a formatter
- Checking for number instead of checking if undefined
- Using angular.isNumber for rounding logic
- Using bitwise instead of modulo to check for decimel
Fixesangular-ui#3413Closesangular-ui#3415
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using the star rating, the rating doesn't handle fractions correctly, causing ratings like 7.1 to be displayed as 8 stars, instead of applying a rounding.
I'm not sure how to fix it, but the problem is caused by the rating.html, in this code:
When applying rounding here, this would work, but I'm not sure how I can inject Math into this template. If someone can explain me how, I don't mind creating a pull request with appropriate tests.
The text was updated successfully, but these errors were encountered: