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

Function markAllAsDirty

packages/forms/src/model/abstract_model.ts:1028–1032  ·  view source on GitHub ↗

* Marks the control and all its descendant controls as `dirty`. * @see markAsDirty() * * @param opts Configuration options that determine how the control propagates changes * and emits events after marking is applied. * * `emitEvent`: When true or not supplied (the default), t

(opts: {emitEvent?: boolean} = {})

Source from the content-addressed store, hash-verified

1026 *
1027 */
1028 markAllAsDirty(opts: {emitEvent?: boolean} = {}): void {
1029 this.markAsDirty({onlySelf: true, emitEvent: opts.emitEvent, sourceControl: this});
1030
1031 this._forEachChild((control: AbstractControl) => control.markAllAsDirty(opts));
1032 }
1033
1034 /**
1035 * Marks the control and all its descendant controls as `touched`.

Callers

nothing calls this directly

Calls 2

markAsDirtyMethod · 0.65
_forEachChildMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…