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
Percent pipe documentation #27365
Percent pipe documentation #27365
Conversation
Change the docs to reflect the actual default value Fixes #27079
Add tests to cover the percent's decimal to be rounded and trimmed.
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
Updated CLA for alternate email address |
CLAs look good, thanks! |
Thanks for catching this! PR looks good, it even has tests, kudos! 👍 |
LGTM |
Add tests to cover the percent's decimal to be rounded and trimmed. PR Close #27365
Add tests to cover the percent's decimal to be rounded and trimmed. PR Close #27365
…ular#27365) Change the docs to reflect the actual default value Fixes angular#27079 PR Close angular#27365
Add tests to cover the percent's decimal to be rounded and trimmed. PR Close angular#27365
…ular#27365) Change the docs to reflect the actual default value Fixes angular#27079 PR Close angular#27365
Add tests to cover the percent's decimal to be rounded and trimmed. PR Close angular#27365
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The documentation states the maxFractionDigits parameter in the PercentPipe defaults to 3. In testing Angular versions 5.x.x through 7.x.x, the default maxFractionDigits seems to be 0.
Issue Number: #27079
What is the new behavior?
The documentation states the maxFractionDigits parameter in the PercentPipe defaults to 0. Two tests now cover the scenarios of trimming extra fraction digits and their appropriate rounding.
Does this PR introduce a breaking change?
Other information
Although this is my first PR, I've enjoyed Angular since beta and am excited to start contributing! If something is missing or incorrect, please let me know and I'll be happy to make the necessary changes. Feedback is also greatly appreciated!
Best regards,
Chris