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

Function markAllAsTouched

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

* Marks the control and all its descendant controls as `touched`. * @see markAsTouched() * * @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

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

Source from the content-addressed store, hash-verified

1068 *
1069 */
1070 markAllAsTouched(opts: {emitEvent?: boolean} = {}): void {
1071 this.markAsTouched({onlySelf: true, emitEvent: opts.emitEvent, sourceControl: this});
1072
1073 this._forEachChild((control: AbstractControl) => control.markAllAsTouched(opts));
1074 }
1075
1076 /**
1077 * Marks the control as `untouched`.

Callers

nothing calls this directly

Calls 2

markAsTouchedMethod · 0.65
_forEachChildMethod · 0.65

Tested by

no test coverage detected