CurrencyInputComponent
A form input control which displays currency in decimal format, whilst working with the integer cent value in the background.
Example
- Implements: ControlValueAccessor, OnInit, OnChanges, OnDestroy
disabled
property
readonly
property
value
property
numbercurrencyCode
property
valueChange
property
prefix$
property
Observable<string>suffix$
property
Observable<string>hasFractionPart
property
onChange
property
(val: any) => voidonTouch
property
() => void_inputValue
property
stringprecision
property
numberprecisionFactor
property
numberconstructor
method
(dataService: DataService, currencyService: CurrencyService) => CurrencyInputComponentngOnInit
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) => voidWas this chapter helpful?