@pankajparkar
@pankajparkar
Technical Lead, Synerzip
@pankajparkar
(too specific and simpler requirement)
@pankajparkar
@pankajparkar
Accesor | Form Element |
---|---|
DefaultValueAccessor | input, textarea |
CheckboxControlValueAccessor | input[type=checkbox] |
NumberValueAccessor | input[type=number] |
RadioControlValueAccessor | input[type=radio]Â |
RangeValueAccessor | input[type=range] |
SelectControlValueAccessor | select |
SelectMultipleControlValueAccessor | select[multiple]Â |
Above all classes inherits from ControlValueAccessor
registerOnTouched
setDisabled
@pankajparkar
const DEFAUL_CONTROLVALUEACCESSOR: Provider = {
provide: NG_VALUE_ACCESSOR,
multi: true,
useExisting: forwardRef(() => RadioGroupComponent)
}
@pankajparkar
@pankajparkar
@pankajparkar
Demo
@pankajparkar
@pankajparkar
@pankajparkar