angular-redux / form

Keep your Angular2+ form state in Redux
MIT License
41 stars 15 forks source link

fix: reactive forms not updating on changes in store #41

Closed kuhnroyal closed 6 years ago

kuhnroyal commented 6 years ago

Fixes reactive forms not updating on changes in store data. Writing changes to the store works. They don't have a parent NgForm, so the update never gets triggered.

Additionally NgForm.updateModel can not be called since it is no NgForm. Now using the FormControl.setValue function uniformly instead.

kuhnroyal commented 6 years ago

ping @GenZodd small diff based on your initial support. Could you please have a look?

smithad15 commented 6 years ago

Published as part of v6.7.0