MCPcopy Index your code
hub / github.com/angular/angular / _setUpStandalone

Method _setUpStandalone

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

Source from the content-addressed store, hash-verified

356 }
357
358 private _setUpStandalone(): void {
359 if (!this.isCustomControlBased) {
360 this.valueAccessor ??= this.selectedValueAccessor;
361 setUpControlValueAccessor(this.control, this, this.callSetDisabledState);
362 } else {
363 // FVC path - set up subscriptions for value/status sync
364 this.setupCustomControl();
365 }
366 this.control.updateValueAndValidity({emitEvent: false});
367 }
368
369 /**
370 * 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