PercentPipe
pipe
Transforms a number to a percentage string, formatted according to locale rules that determine group sizing and separator, decimal-point character, and other locale-specific configurations.
API
Description
Usage Notes
class PercentPipe implements PipeTransform {}
transform
3 overloads
@paramvalue
string | number
@paramdigitsInfo
string | undefined
@paramlocale
string | undefined
@returns
string | null
@paramvalue
null | undefined
@paramdigitsInfo
string | undefined
@paramlocale
string | undefined
@returns
null
@paramvalue
string | number | null | undefined
@paramdigitsInfo
string | undefined
@paramlocale
string | undefined
@returns
string | null
Jump to details