ControlValueAccessor for writing multi-select control values and listening to multi-select control changes. The value accessor is used by the
The current value
The registered callback function called when a change event occurs on the input element.
The registered callback function called when a blur event occurs on the input element.
Tracks the option comparison algorithm for tracking identities when checking for changes.
Using a multi-select control
The follow example shows you how to use a multi-select control with a reactive form.
const countryControl = new FormControl();
Customizing option selection
To customize the default option comparison algorithm,
compareWith input. See the
SelectControlValueAccessor for usage.
Sets the "value" property on one or of more of the select's options.
Registers a function called when the control value changes and writes an array of the selected options.
Registers a function called when the control is touched.
Sets the "disabled" property on the select input element.