
Description
ngx-sub-form is a utility library that helps you split a large Angular form into smaller parts while keeping it type-safe. Its API is built around one function that creates a form, so there is no Angular module to set up, no ControlValueAccessor to write by hand and no inheritance to manage. You define a root form and sub forms, and each sub form can live in its own component and be reused. The README covers the principles behind root forms and sub forms, remapping values and working with arrays. It includes a basic API example, setup from npm, a version table that matches Angular versions to ngx-sub-form versions, and a migration guide to the new API. The README is clear that the library is not meant for generating forms dynamically from a JSON configuration. The project's contribution notes and a request for feedback on experience with the library are also in the README. The source is public on GitHub. It suits Angular teams whose forms are long or complex and need a clear structure.…
Highlights
- Break large forms into sub forms
- Type-safe form definitions
- No ControlValueAccessor boilerplate
- Single function to create forms
- Migration guide to the new API
Ratings & Reviews
No ratings yet
Be the first to rate ngx-sub-form.
People also visit
ngx-sub-form FAQ
What is ngx-sub-form?
A utility library for building Angular forms from smaller, reusable sub forms with type safety.
Do I need an Angular module?
No. The README says there is no module to set up.
Can it build forms from JSON?
No. The README says it is not meant for generating forms dynamically from a configuration.
How do I install it?
Install it from npm. The README has a table that matches Angular versions to ngx-sub-form versions.
What are the best ngx-sub-form alternatives?
Popular alternatives to ngx-sub-form include ng-forge, ngx-mask and formisch. See all ngx-sub-form alternatives

















