The format to use when formatting the number. If not specified, the default format 'n' will be used. See the Globalite documentation for more information about number formats.
Protected
Readonly
injectorProtected
Readonly
localeProtected
#valuesProtected
coerceProtected
Coerces the value to the type supported by this directive
The value to coerce.
The coerced value. If the v is of Type T, it should be returned as is. If it's null, null is returned If it's a string, it should be converted to the type T and returned. If the conversion from string fails, undefined should be returned.
Protected
formatProtected
inputs
Directive to convert and format number values using Globalite. When the input value is a string, it will be parsed using the current locale. And the value for the form control will be a number. When the value of the form control is a number, it will be formatted using the current locale and the specified format and written to the input element.
An empty string or a string with only whitespace will be converted to
null
.Example
Example