Interface
ComponentAddon
@ng-forge/dynamic-forms
Renders an arbitrary Angular component as the addon body.
The loader returns either a component class directly or a module with a
default export. For non-default exports, unwrap with .then(m => m.X):
{ kind: 'component', component: () => import('./my').then(m => m.MyComponent) }@codeOnly The component loader is a function and cannot survive
JSON.stringify/parse. The lenient validator drops this kind when the
config originated from JSON (set via sanitizeFormConfig({ source: 'json' })).
Signature
interface ComponentAddon
extends BaseAddonProperties
| Name | Type | Description |
|---|---|---|
kind | "component" | - |
component | () => Promise<Type<unknown> | { default: Type<unknown>; }> | - |
inputs ? | Record<string, unknown> | undefined | - |
packages/dynamic-forms/src/lib/models/addon/addon-def.ts:97