MCPcopy Create free account
hub / github.com/angular/angular / _setUpStandalone

Method _setUpStandalone

packages/forms/src/directives/ng_model.ts:385–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383 }
384
385 private _setUpStandalone(): void {
386 if (!this.isCustomControlBased) {
387 this.valueAccessor ??= this.selectedValueAccessor;
388 setUpControlValueAccessor(this.control, this, this.callSetDisabledState);
389 } else {
390 // FVC path - set up subscriptions for value/status sync
391 this.setupCustomControl();
392 }
393 this.control.updateValueAndValidity({emitEvent: false});
394 }
395
396 /**
397 * Sets up the control with the form, handling FVC vs CVA branching.

Callers 1

_setUpControlMethod · 0.95

Calls 2

Tested by

no test coverage detected