What it does
Formats a number as a percentage according to locale rules.
How to use
number_expression | percent[:digitInfo]
NgModule
CommonModule
Description
Formats a number as percentage.
digitInfo
SeeDecimalPipe
for detailed description.
WARNING: this pipe uses the Internationalization API which is not yet available in all browsers and may require a polyfill. See 浏览器支持 for details.
Example
exported from common/index defined in common/src/pipes/number_pipe.ts