![]() |
VOOZH | about |
In this article, we are going to see what is percentPipe in Angular 10 and how to use it.
The percentPipe is used to Transform a number to a percentage string.
Syntax:
{{ value | percent [ : digitsInfo [ : locale ] ] }}
NgModule: Module used by percentPipe is:
Approach:
Input value:
Parameters:
Example 1:
Filename: app.component.ts Filename: app.component.htmlOutput:
Example 2:
Output:
Reference: https://v17.angular.io/api/common/PercentPipe