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

Method reset

packages/forms/signals/src/field/node.ts:332–334  ·  view source on GitHub ↗

* Resets the touched and dirty state of the field and its descendants. * * Note this does not change the data model, which can be reset directly if desired. * * @param value Optional value to set to the form. If not passed, the value will not be changed.

(value?: unknown)

Source from the content-addressed store, hash-verified

330 * @param value Optional value to set to the form. If not passed, the value will not be changed.
331 */
332 reset(value?: unknown): void {
333 untracked(() => this._reset(value));
334 }
335
336 private _reset(value?: unknown) {
337 this.pendingSync()?.abort();

Callers

nothing calls this directly

Calls 2

_resetMethod · 0.95
untrackedFunction · 0.90

Tested by

no test coverage detected