Skip to main content

CurrencyInputComponent

A form input control which displays currency in decimal format, whilst working with the integer cent value in the background.

Example

HTML
Signature
  • Implements: ControlValueAccessor, OnInit, OnChanges, OnDestroy

disabled

property

readonly

property

value

propertynumber

currencyCode

property

valueChange

property

prefix$

propertyObservable<string>

suffix$

propertyObservable<string>

hasFractionPart

property

onChange

property(val: any) => void

onTouch

property() => void

_inputValue

propertystring

precision

propertynumber

precisionFactor

propertynumber

constructor

method(dataService: DataService, currencyService: CurrencyService) => CurrencyInputComponent

ngOnInit

method() =>

ngOnChanges

method(changes: SimpleChanges) =>

ngOnDestroy

method() =>

registerOnChange

method(fn: any) =>

registerOnTouched

method(fn: any) =>

setDisabledState

method(isDisabled: boolean) =>

onInput

method(value: string) =>

onFocus

method() =>

writeValue

method(value: any) => void
Was this chapter helpful?
Report Issue
Edited Feb 23, 2026ยทEdit this page