dynamic-forms / Interface

FieldSignalContext

Generic types:TModel

Field signal context - the "nervous system" of the dynamic form. Provided via FIELD_SIGNAL_CONTEXT injection token.

Gives mappers and components access to form state, values, and configuration. Container fields (Group, Array) create scoped contexts with nested forms.

The form property uses Angular's FieldTree which includes Subfields for type-safe child field access via bracket notation when TModel is a Record.

Note: Form-level configuration (defaultValidationMessages, formOptions, defaultProps) is provided via dedicated injection tokens (DEFAULT_VALIDATION_MESSAGES, FORM_OPTIONS, DEFAULT_PROPS) at the DynamicForm level and inherited by all children.

Properties

NameTypeDescription
currentPageValid
Signal<boolean> | undefined

Current page validity signal for paged forms. Used by next button to determine disabled state.

defaultValues
() => TModel
form
FieldTree<TModel>
injector
Injector
value
WritableSignal<Partial<TModel> | undefined>