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

Method removeControl

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

* @description * Removes the `NgModel` instance from the internal list of directives * * @param dir The `NgModel` directive instance.

(dir: NgModel)

Source from the content-addressed store, hash-verified

253 * @param dir The `NgModel` directive instance.
254 */
255 removeControl(dir: NgModel): void {
256 resolvedPromise.then(() => {
257 const container = this._findContainer(dir.path);
258
259 container?.removeControl(dir.name);
260
261 this._directives.delete(dir);
262 });
263 }
264
265 /**
266 * @description

Callers

nothing calls this directly

Calls 4

_findContainerMethod · 0.95
thenMethod · 0.65
removeControlMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected