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

Method markAsTouchedInternal

packages/forms/signals/src/field/node.ts:283–297  ·  view source on GitHub ↗
(options?: MarkAsTouchedOptions)

Source from the content-addressed store, hash-verified

281 }
282
283 markAsTouchedInternal(options?: MarkAsTouchedOptions): void {
284 if (this.structure.isOrphaned()) {
285 return;
286 }
287 if (this.validationState.shouldSkipValidation()) {
288 return;
289 }
290 this.nodeState.markAsTouched();
291 if (options?.skipDescendants) {
292 return;
293 }
294 for (const child of this.structure.children()) {
295 child.markAsTouchedInternal();
296 }
297 }
298
299 /**
300 * Marks this specific field as dirty.

Callers 1

markAsTouchedMethod · 0.95

Calls 2

markAsTouchedMethod · 0.65
childrenMethod · 0.45

Tested by

no test coverage detected