Highlights
-
JSON Schema Conditional Logic (
if/then/else)
The JSON Schema service matches standard compliance by supportingif,then, andelsekeywords. This enables defining complex conditional logic directly within schemas for dynamic field configurations. -
CSP-Safe Expression Evaluation
Added support for CSP-safe expression evaluation, allowing usages in strict security environments withouteval().To enable CSP-safe expression evaluation, use the
withFormlyFieldExpressionconfiguration helper:import { provideFormlyConfig, withFormlyFieldExpression } from '@ngx-formly/core'; providers: [ provideFormlyConfig( withFormlyFieldExpression() ), ],
Features
- core: export FormlyFieldConfigPresetProvider via public_api (#4161) (3976e09)
- core: extend formly json schema service to support if/then/else (#4140) (f534999)
- core: support CSP-safe expression evaluation (#4141) (ef839c1)