MCPcopy
hub / github.com/angular/angular / _reloadValidation

Method _reloadValidation

packages/forms/signals/src/field/node.ts:363–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

361 }
362
363 private _reloadValidation(): void {
364 const keys = this.logicNode.logic.getMetadataKeys();
365 for (const key of keys) {
366 if (key[IS_ASYNC_VALIDATION_RESOURCE]) {
367 const resource = this.metadata(key)! as Resource<unknown> &
368 Partial<Pick<WritableResource<unknown>, 'reload'>>;
369 resource.reload?.();
370 }
371 }
372
373 for (const child of this.structure.children()) {
374 child._reloadValidation();
375 }
376 }
377
378 /**
379 * Creates a linked signal that initiates a {@link debounceSync} when set.

Callers 1

reloadValidationMethod · 0.95

Calls 4

metadataMethod · 0.95
getMetadataKeysMethod · 0.80
reloadMethod · 0.65
childrenMethod · 0.45

Tested by

no test coverage detected