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
| Name | Constraint | Default | Description |
|---|---|---|---|
T | - | - | - |
Examples
const a: DynamicValue<boolean> = true;
const b: DynamicValue<boolean> = signal(false);
const c: DynamicValue<boolean> = isValid$;packages/dynamic-forms/src/lib/models/types/dynamic-value.ts:19