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

Method _reloadValidation

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

Source from the content-addressed store, hash-verified

366 }
367
368 private _reloadValidation(): void {
369 const keys = this.logicNode.logic.getMetadataKeys();
370 for (const key of keys) {
371 if (key[IS_ASYNC_VALIDATION_RESOURCE]) {
372 const resource = this.metadata(key)! as Resource<unknown> &
373 Partial<Pick<WritableResource<unknown>, 'reload'>>;
374 resource.reload?.();
375 }
376 }
377
378 for (const child of this.structure.children()) {
379 child._reloadValidation();
380 }
381 }
382
383 /**
384 * 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