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

Method removeFormGroup

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

* @description * Removes the `NgModelGroup` directive instance from the form. * * @param dir The `NgModelGroup` directive instance.

(dir: NgModelGroup)

Source from the content-addressed store, hash-verified

285 * @param dir The `NgModelGroup` directive instance.
286 */
287 removeFormGroup(dir: NgModelGroup): void {
288 resolvedPromise.then(() => {
289 const container = this._findContainer(dir.path);
290 container?.removeControl?.(dir.name);
291 });
292 }
293
294 /**
295 * @description

Callers

nothing calls this directly

Calls 3

_findContainerMethod · 0.95
thenMethod · 0.65
removeControlMethod · 0.65

Tested by

no test coverage detected