Interface

AsyncCondition

@ng-forge/dynamic-forms

Condition that evaluates based on a registered async function.

The function is resolved reactively — when dependent form values change, the function is re-evaluated (with debouncing). The result is cached per evaluation to avoid redundant calls.

Since LogicFn must return boolean synchronously, this condition uses a signal-based async resolution pattern internally.

@public

Signature

interface AsyncCondition

Properties

NameTypeDescription
type "async"-
asyncFunctionName stringName of the registered async condition function
pendingValue ?boolean

Value to return while async resolution is pending.

Choose based on the logic type and desired UX: - For hidden: false = visible while loading, true = hidden while loading - For disabled: false = enabled while loading, true = disabled while loading - For required: false = optional while loading, true = required while loading

debounceMs ?numberDebounce ms for re-evaluation.