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

Method addFormGroup

packages/forms/src/directives/ng_form.ts:271–279  ·  view source on GitHub ↗

* @description * Adds a new `NgModelGroup` directive instance to the form. * * @param dir The `NgModelGroup` directive instance.

(dir: NgModelGroup)

Source from the content-addressed store, hash-verified

269 * @param dir The `NgModelGroup` directive instance.
270 */
271 addFormGroup(dir: NgModelGroup): void {
272 resolvedPromise.then(() => {
273 const container = this._findContainer(dir.path);
274 const group = new FormGroup({});
275 setUpFormContainer(group, dir);
276 container.registerControl(dir.name, group);
277 group.updateValueAndValidity({emitEvent: false});
278 });
279 }
280
281 /**
282 * @description

Callers

nothing calls this directly

Calls 5

_findContainerMethod · 0.95
setUpFormContainerFunction · 0.90
thenMethod · 0.65
registerControlMethod · 0.65

Tested by

no test coverage detected