/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { ElementRef, OnDestroy, Renderer2 } from '@angular/core'; import { BuiltInControlValueAccessor, ControlValueAccessor } from './control_value_accessor'; import * as i0 from "@angular/core"; /** * @description * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and * `NgModel` directives. * * @see {@link SelectControlValueAccessor} * * @usageNotes * * ### Using a multi-select control * * The follow example shows you how to use a multi-select control with a reactive form. * * ```ts * const countryControl = new FormControl(); * ``` * * ``` * * ``` * * ### Customizing option selection * * To customize the default option comparison algorithm, `