Interface
ArrayContext
@ng-forge/dynamic-forms
Array context for fields rendered within arrays. Provides position and parent array information for components inside array fields.
Signature
interface ArrayContextProperties
| Name | Type | Description |
|---|---|---|
arrayKey | string | The key of the parent array field. |
index | Signal<number> | The index of this item within the array. Uses linkedSignal to automatically update when items are added/removed, allowing index-dependent logic to react without component recreation. |
formValue | unknown | The current form value for token resolution. |
field | FieldDef<unknown, FieldMeta> | The array field definition. |
packages/dynamic-forms/src/lib/mappers/types.ts:32