ngrx-forms brings the strengths of the redux state management model to the world of forms in applications that are using Angular and ngrx. The mechanisms that Angular provides for working with forms are inherently mutable, local, and hard to debug. This library offers a different model for working with forms. Instead of storing the state of form controls inside the components we put them in the ngrx store. We update the state with actions which allows easy debugging just like any other redux application. ngrx-forms also provides powerful mechanisms to update, validate and generally manage large complex forms. It contains APIs for synchronous and asynchronous validation, creating dynamic forms, integrating with custom form elements, and much more.
npm install ngrx-forms --save
This library has a peer dependency on
@ngrx/store, so make sure appropriate versions of those packages are installed.
To report a bug please provide a reproduction of the issue in a code sandbox. You can fork this example.
Please see the documentation.
Everything in this repository is licensed under the MIT License unless otherwise specified.
Copyright (c) 2017-present Jonathan Ziller