* Sets up the control with the form, handling FVC vs CVA branching. * Called by NgForm.addControl. * @internal
(callSetDisabledState?: SetDisabledStateOption)
| 372 | * @internal |
| 373 | */ |
| 374 | _setupWithForm(callSetDisabledState?: SetDisabledStateOption): void { |
| 375 | if (!this.isCustomControlBased) { |
| 376 | this.valueAccessor ??= this.selectedValueAccessor; |
| 377 | setUpControlValueAccessor(this.control, this, callSetDisabledState); |
| 378 | } else { |
| 379 | this.setupCustomControl(); |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | private _checkForErrors(): void { |
| 384 | if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._isStandalone()) { |
no test coverage detected