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

Method reset

packages/forms/signals/src/field/node.ts:327–329  ·  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

325 * @param value Optional value to set to the form. If not passed, the value will not be changed.
326 */
327 reset(value?: unknown): void {
328 untracked(() => this._reset(value));
329 }
330
331 private _reset(value?: unknown) {
332 this.pendingSync()?.abort();

Callers

nothing calls this directly

Calls 2

_resetMethod · 0.95
untrackedFunction · 0.90

Tested by

no test coverage detected