Component
ContainerFieldComponent
@ng-forge/dynamic-forms
Layout container that wraps child fields with UI chrome.
Resolves children like a row, then chains wrapper components around them
using imperative ViewContainerRef. — each wrapper's
createComponent()#fieldComponent slot hosts the next wrapper or the children template.
Does not create a new form context - fields share the parent's context. Field values are flattened into the parent form (no nesting under container key). Purely a visual/layout container with no impact on form structure.
Signature
class ContainerFieldComponentProperties
| Name | Type | Description |
|---|---|---|
environmentInjector | EnvironmentInjector | - |
field | InputSignal<ContainerField<readonly ContainerAllowedChildren[], readonly WrapperConfig[]>> | - |
key | InputSignal<string> | - |
className | InputSignal<string> | - |
hidden | InputSignal<boolean> | - |
hostClasses | Signal<string> | - |
disabled | Signal<boolean> | - |
resolvedFields | Signal<ResolvedField[]> | - |
packages/dynamic-forms/src/lib/fields/container/container-field.component.ts:39