dynamic-forms / Function

arrayFieldMapper

Maps an array field definition to component inputs.

Array components create nested form structures under the array's key. The array component will inject the parent FIELD_SIGNAL_CONTEXT and create a scoped child injector for its array item fields.

Presentation

function arrayFieldMapper(
  fieldDef: ArrayField<readonly ArrayAllowedChildren[]>,
): Signal<Record<string, unknown>>;

Returns

Signal<Record<string, unknown>> -

Signal containing Record of input names to values for ngComponentOutlet

Parameters

NameTypeDescription
fieldDef
ArrayField<readonly ArrayAllowedChildren[]>

The array field definition