clbond / ng2-redux-form

Connect Angular 2 forms to Redux stores
17 stars 7 forks source link

Does this module works with ReactiveFormsModule #12

Closed Redigast13 closed 7 years ago

Redigast13 commented 7 years ago

I know two types of forms in angular 2. Template driven forms and reactive forms. Here is a chapter about form validation in this form types. ng2-redux-form module works fine with template-driven forms. But if I use reactive forms with formGroup and form controls, then ng2-redux-form module doesn't work. There is no actions @@ng2-redux-form/FORM_CHANGED on inputs changed. Does this module work only with template-driven forms?

clbond commented 7 years ago

Yes. The purpose of the library is to enable you to build template-driven forms that are bound to Redux state. FormBuilder is bad and you can't use it with ng2-redux-form-controlled forms.