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

Function applyWhenValue

packages/forms/signals/src/api/structure.ts:372–378  ·  view source on GitHub ↗
(
  path: SchemaPath<unknown>,
  predicate: (value: unknown) => boolean,
  schema: SchemaOrSchemaFn<unknown>,
)

Source from the content-addressed store, hash-verified

370): void;
371
372export function applyWhenValue(
373 path: SchemaPath<unknown>,
374 predicate: (value: unknown) => boolean,
375 schema: SchemaOrSchemaFn<unknown>,
376) {
377 applyWhen(path, ({value}) => predicate(value()), schema);
378}
379
380/**
381 * Submits a given `FieldTree` using the given action function and applies any submission errors

Callers 3

debounce.spec.tsFile · 0.90
when.spec.tsFile · 0.85

Calls 3

applyWhenFunction · 0.85
valueFunction · 0.85
predicateFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…