npm / @ngx-formly/core
@ngx-formly/core
What changed in @ngx-formly/core 6 to 11, from its official release notes, upgrade guides and advisories. Also covers @ngx-formly/material. Sources checked 2026-11-30.
57 breaking1 security1 deprecations28 new APIs and options8 behavior and defaults3 tooling17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@ngx-formly/core 1129 changes
Breaking changes 11
Formly v11 requires Angular 22 or newer; Angular 21 applications should remain on Formly v10.
Exported for validation summaries; the validationMessages pipe collects messages from a built field or field tree, excluding hidden and disabled fields and deduplicating shared-control errors.
For Ionic 9, replace IonicModule.forRoot() with provideIonicAngular() in application providers.
The corresponding Angular UI library must be version 22 or newer.
Copied radio templates and selectors should use p-radiobutton.
Explicit positive step values now validate numeric model values; configure a step validation message, or use step: 'any' and props.attributes.step when the increment should only affect the UI.
Array row fields and control state follow model values on indexed insertion and removal; set props.trackByIndex: true for custom arrays whose configuration depends on position.
Ionic 9 applications should replace IonicModule.forRoot() with provideIonicAngular() in application providers and use standalone components.
Datepicker applications should add provideNzDateFnsAdapter() to application providers to preserve the previous date-fns behavior.
Hidden fields using shareFormControl: false no longer run parsers or write detached control values to the model, and hiding cancels pending debounced writes.
The pipe collects messages from a built field or field tree, excludes hidden and disabled fields, and deduplicates shared-control errors.
Deprecations 1
Deprecated in favor of the validationMessages pipe; existing components and their public members remain available.
New APIs and options 10
Accepts a signal or computed directly to update field properties when its value changes, even without a model change; existing string, function, and Observable expressions remain supported.
Control when validation feedback appears; the default error display follows this setting, while validators and form validity remain unchanged.
Expose validation display state to custom types and wrappers, including pending and valid states.
Override validation feedback display for an individual form; validators and form validity remain unchanged.
Accept a WritableSignal as the form model; bind it with [model] to update the signal with a copy after edits and rebuild when the application sets a new value.
Exported for validation summaries collected by the validationMessages pipe.
Renders labels and descriptions as sanitized HTML in web UI adapters; plain text remains the default, and NativeScript and custom templates do not automatically support the option.
Customizes select trigger text using a selected-value property or formatter function.
String validator expressions can access control, field, model, and formState through the CSP-safe expression parser.
Displays all configured field error messages, including asynchronous messages.
Behavior and default changes 1
Select and datepicker props.appendTo accepts PrimeNG's AppendTo type, including 'body', 'self', and element or template references.
Tooling 3
Serves the demo at https://ngx-formly.localhost with separate subdomains for Git worktrees; requires pnpm 11 or newer, while dependency installation continues to use npm.
A demo Tools section validates Formly field configuration JSON and reports syntax errors, invalid property types, deprecated options, and likely misspellings at their editor locations.
Generated installations now use Angular 22 and Formly v11.
Fixes and other changes 3
Support PrimeNG 21.1.10; applications using PrimeNG 21 with Angular 22 need the scoped npm overrides described in the installation guide.
Array row fields and control state follow their model values; insertion preserves existing row controls, input instances, and touched/dirty state, and connected arrays and fixed-path editors stay bound correctly.
Tuple validation stays at the correct position, and recursive oneOf branches resolve using their current row keys after array changes.
@ngx-formly/core 1017 changes
Breaking changes 8
Applications using Angular's CommonEngine need to configure allowed hostnames to retain server rendering.
Angular 21 or newer is now required; applications on Angular 20 should remain on Formly v9.
The parser now rejects trailing tokens it previously ignored, so malformed string expressions can cause form construction to fail.
Valid forms now emit an initial statusChanges notification; subscribers may run during initialization even when the status stays VALID.
The numeric input now uses NG-ZORRO's default formatter and no longer exposes this helper; custom templates referencing it should remove the binding.
PrimeNG 21 uses native CSS animations, so this option no longer controls its animations.
PrimeNG 21 uses native CSS animations, so this option no longer controls its animations.
When enabled, the parser requires the entire string expression to be valid; trailing tokens that were previously ignored now cause a parse error and may prevent the form from building.
New APIs and options 4
WritableSignal is now supported as the model input.
Adds an asynchronous formly-form output for accessing controls after the fields or form input changes, including initial binding.
The new output delivers build notifications asynchronously after the current change-detection pass.
Exports the event type associated with the fieldChange output.
Behavior and default changes 2
Valid forms now emit an initial statusChanges notification; unchanged rebuilds do not repeat it.
CSP expressions now support optional property and index access, such as model.user?.name and model.items?.[0].
Fixes and other changes 3
UI configuration functions now reference the public ConfigOption type, fixing TypeScript module-resolution errors caused by generated declarations importing private paths.
Disabled nested groups and arrays remain disabled when their parent is re-enabled, including fields with observable disabled expressions.
JSON Schema fields that allow both a numeric type and null now preserve null when cleared.
@ngx-formly/core 919 changes
Breaking changes 10
Angular 20 or newer is required for Formly v9; applications on Angular 19 should remain on Formly v8.
PrimeNG datepickers and selects, Kendo numeric inputs, and NG-ZORRO numeric inputs now assign the field ID to the focusable input and append -container to the outer component ID; update custom selectors targeting the outer component.
Factories for ordinary arrays run when a row is created, not when an existing row moves; fieldGroup.length identifies the new position during evaluation.
The Ionic adapter now imports individual standalone Ionic 9 components; custom field templates must import the components they use.
Kendo label, dropdown, and input packages now require version 19.1 or newer.
Remove this prop from PrimeNG datepicker configuration because PrimeNG 20 removed the input.
NativeScript now requires @nativescript/angular 20 or newer.
Custom fields copied from Formly's NG-ZORRO numeric-input implementation should import NzInputNumberLegacyModule to keep their existing API with NG-ZORRO 20.
The PrimeNG integration now requires PrimeNG 20 or newer.
PrimeNG text inputs, textareas, datepickers, and selects now fill their available width.
New APIs and options 2
The pipe collects configured messages from a built field or field tree and emits entries containing the field, error name, and resolved message.
PrimeNG and Kendo select fields support props.multiple; use an array model value when it is enabled.
Behavior and default changes 4
PrimeNG now renders field descriptions.
Use the HTML input step attribute for a UI-only increment when arbitrary numeric values must remain valid.
Hiding an independent editor cancels pending debounced model writes; update inactive values directly on the model.
Formly supports both zoneless and Zone.js change-detection modes. In zoneless applications, asynchronous template-state updates must notify Angular.
Fixes and other changes 3
Disabled datetime fields no longer open, and Ionic labels and required markers are preserved.
Defaults are restored safely when the model is rebuilt.
PrimeNG validation-message styling is corrected.
@ngx-formly/core 811 changes
Breaking changes 3
Angular 19 or newer is now required; upgrade Angular before updating all @ngx-formly/* packages together to v8. Applications on Angular 18 should remain on Formly v7.
Provides a separate FormlyConfig instance in the injector where it is registered, so calling it in a child component or route creates an independent configuration.
valueChanges no longer emits when the form is disabled.
New APIs and options 5
Distinct Formly configurations are now supported per injection scope.
FormlyAttributeEvent is now exported via public_api.
Use this API to extend the shared configuration in a child scope.
The transform option now supports a map function.
ValidationMessageOption is now exported via public_api.
Behavior and default changes 1
Pattern attribute handling in FormlyAttributes is enhanced.
Fixes and other changes 2
The model is now updated from inline template controls.
Select option observables are detected with isObservable.
@ngx-formly/core 713 changes
Breaking changes 1
Requires Angular >=18.
Security 1
Use this configuration helper to enable CSP-safe expression evaluation in strict security environments without eval().
New APIs and options 5
FormlyFieldConfigPresetProvider is exported via public_api.
Export FormlyTemplate for standalone use.
Add configuration options to the PrimeNG datepicker.
Adds support for the Ionic labelPlacement prop.
Adds support for standalone components.
Fixes and other changes 6
The JSON Schema service supports the if, then, and else keywords for defining conditional logic in schemas and dynamic field configurations.
Promise objects are no longer cloned.
Remove extra whitespace for hint text in the Material integration.
Clear the preset tag after a merge.
Configuration is merged when using provideFormlyConfig.
Use optional chaining when accessing validity.badInput.
@ngx-formly/core 626 changes
Breaking changes 24
Formly V6 requires Angular version 13 or later.
The default is now modelChange, improving performance; set it to changeDetectionCheck to rely on the old behavior.
pickerOptions, pickerFormat, monthNames, monthShortNames, dayNames, and dayShortNames were removed; use presentation, locale, and displayFormat to customize datetime.
The defaultValue for fieldGroup and fieldArray is now undefined instead of an empty object or array; configure defaultValue to retain the old behavior.
In JSON Schema map customization, expressions replaces expressionProperties.
In JSON Schema map customization, expressions.hide replaces hideExpression.
When customizing generated fields with the JSON Schema map option, fieldArray now returns a function instead of an object.
Use FieldTypeConfig with custom field types using [formControl] so the formControl property is expected to be a FormControl instance when strictTemplates is enabled.
Calling reset without an explicit value now restores the form's default value instead of null.
The custom prefix values were removed: use default, inline, and switch instead of custom, custom-inline, and custom-switch.
A created FormControl now starts with undefined instead of null to match the field model value; set defaultValue to null to retain a null initial value.
formly-form now includes an extra formly-field for managing the root field using field-group; CSS selectors targeting the root field may need updating.
Use formly-wrapper-form-field to customize Bootstrap types instead of the listed formly-wrapper-addons and formly-field selectors.
lazyRender is enabled by default, removing hidden fields from the DOM instead of using CSS to control visibility; set it to false for the old behavior.
The validation message key changed from lowercase maxlength to camelCase maxLength to match templateOptions.maxLength.
The validation message key changed from lowercase minlength to camelCase minLength to match templateOptions.minLength.
Bootstrap v4 support is removed and replaced with Bootstrap v5 support.
The library now requires Ionic V6.
The null validation message was removed and replaced by the type validation message.
The add-on onClick handler now receives field and $event instead of to, fieldType, and $event.
All Formly components use OnPush change detection; custom templateOptions properties need a default value or must be updated with spread object assign for Angular to detect changes.
In JSON Schema map customization, props replaces templateOptions.
resetOnHide is enabled by default and removes a hidden field's value from the model; disable it per field or set resetFieldOnHide to false for the old behavior.
Passing {key, value} to select options is no longer supported; use {value, label} or configure labelProp and valueProp.
New APIs and options 2
Use FieldArrayTypeConfig when a custom field type's formControl is expected to be a FormArray.
Use FieldGroupTypeConfig when a custom field type's formControl is expected to be a FormGroup.