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

Method setControl

packages/forms/src/model/form_group.ts:773–773  ·  view source on GitHub ↗

* Replace an existing control. * * See `FormGroup#setControl` for additional information.

(name: string, control: TControl, options?: {emitEvent?: boolean})

Source from the content-addressed store, hash-verified

771 * See `FormGroup#setControl` for additional information.
772 */
773 setControl(name: string, control: TControl, options?: {emitEvent?: boolean}): void;
774
775 /**
776 * Check whether there is an enabled control with the given name in the group.

Implementers 1

FormGrouppackages/forms/src/model/form_group.ts

Calls

no outgoing calls

Tested by

no test coverage detected