Component
TemplateAddonComponent
@ng-forge/dynamic-forms
Renderer for the universal template addon kind.
Resolves the addon's templateKey against {@link DF_FIELD_TEMPLATES}
(populated by <df-dynamic-form> from <ng-template dfTemplate="...">
children) and renders via NgTemplateOutlet. The wrapper-style host bag
(fieldInputs) is forwarded as the template's implicit context — author
the template as <ng-template dfTemplate="..." let-fi>{{ fi.key }}</ng-template>.
If the key is unresolved, logs a warning and renders nothing — keeps the form alive when a backend references a template the FE has not registered.
Signature
class TemplateAddonComponentProperties
| Name | Type | Description |
|---|---|---|
addon | InputSignal<TemplateAddon> | - |
fieldInputs | InputSignal<WrapperFieldInputs | undefined> | Forwarded by df-addon-slot; surfaced to the template as its implicit $implicit context. |
template | Signal<TemplateRef<unknown> | null> | - |
outletContext | Signal<{ $implicit: WrapperFieldInputs | undefined; }> | Implicit context payload — template authors bind via let-fi. |
packages/dynamic-forms/src/lib/addons/template-addon.component.ts:21