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

Method _setUpStandalone

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

Source from the content-addressed store, hash-verified

373 }
374
375 private _setUpStandalone(): void {
376 if (!this.isCustomControlBased) {
377 this.valueAccessor ??= this.selectedValueAccessor;
378 setUpControlValueAccessor(this.control, this, this.callSetDisabledState);
379 } else {
380 // FVC path - set up subscriptions for value/status sync
381 this.setupCustomControl();
382 }
383 this.control.updateValueAndValidity({emitEvent: false});
384 }
385
386 /**
387 * 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