Highlights
This release add support of standalone components and requires Angular >=16, for usage of standalone components please check the following example: https://stackblitz.com/edit/fjacyu-4kqqes
- Note: No change is required for NgModule API (FormlyModule, FormlyBootstrapModule, ...) and it'll be still supported alongside with Standalone API.
NgModule Api | Standalone Alternative Api |
---|---|
FormlyModule | FormlyForm |
FormlyModule.forRoot | provideFormlyCore |
FormlyModule.forChild | provideFormlyConfig |
FormlyBootstrapModule | withFormlyBootstrap |
FormlyMaterialModule | withFormlyMaterial |
Formly{...UI}Module | withFormly{...UI} |
⚠ BREAKING CHANGES
- bootstrap:
formly-wrapper-form-field
selector has the following marginmargin-bottom: 1rem;
. - core: The library now requires Angular 16