* Sets up the control with the form, handling FVC vs CVA branching. * Called by NgForm.addControl. * @internal
(callSetDisabledState?: SetDisabledStateOption)
| 399 | * @internal |
| 400 | */ |
| 401 | _setupWithForm(callSetDisabledState?: SetDisabledStateOption): void { |
| 402 | if (!this.isCustomControlBased) { |
| 403 | this.valueAccessor ??= this.selectedValueAccessor; |
| 404 | setUpControlValueAccessor(this.control, this, callSetDisabledState); |
| 405 | } else { |
| 406 | this.setupCustomControl(); |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | private _checkForErrors(): void { |
| 411 | if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._isStandalone()) { |
no test coverage detected