Const

FIELD_REGISTRY

@ng-forge/dynamic-forms

Injection token for the global field type registry.

Provides access to the map of registered field types throughout the application. The registry is populated by the provideDynamicForm function and used by field rendering components to resolve field types to their implementations.

Signature

const FIELD_REGISTRY: InjectionToken<Map<string, FieldTypeDefinition<any>>>

Examples

constructor(@Inject(FIELD_REGISTRY) private registry: Map<string, FieldTypeDefinition>) {
  const inputType = registry.get('input');
}