function
Transforms a value (typically a string) to a number. Intended to be used as a transform function of an input.
numberAttribute(value: unknown, fallbackValue: number = NaN): number
value | unknown | Value to be transformed. |
fallbackValue | number | Value to use if the provided value can't be parsed as a number. Optional. Default is |
number
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/numberAttribute