Type

DynamicValue

@ng-forge/dynamic-forms

Generic reactive value — a static value, an Angular Signal, or an RxJS Observable.

Generalises {@link DynamicText} for arbitrary value types. Used by cross-cutting properties that need to react to form state without forcing every consumer to deal with reactivity (e.g., hidden / disabled on addons).

Signature

type DynamicValue<T> = T | Signal<T> | Observable<T>;

Type Parameters

NameConstraintDefaultDescription
T---

Examples

const a: DynamicValue<boolean> = true;
const b: DynamicValue<boolean> = signal(false);
const c: DynamicValue<boolean> = isValid$;