* Sets up the control with the form, handling FVC vs CVA branching. * Called by NgForm.addControl. * @internal
(callSetDisabledState?: SetDisabledStateOption)
| 389 | * @internal |
| 390 | */ |
| 391 | _setupWithForm(callSetDisabledState?: SetDisabledStateOption): void { |
| 392 | if (!this.isCustomControlBased) { |
| 393 | this.valueAccessor ??= this.selectedValueAccessor; |
| 394 | setUpControlValueAccessor(this.control, this, callSetDisabledState); |
| 395 | } else { |
| 396 | this.setupCustomControl(); |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | private _checkForErrors(): void { |
| 401 | if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._isStandalone()) { |
no test coverage detected