You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to have more than one validated-form in the page, for the same model, taking a changeset.
Different fields will be applicable for each form. But certain fields in one form, is a computed property of another form (the computed property is given in the model itself, so when we save / get, field is computed and received).
Since they are different forms, and each form creates a new model, the model is not updating the other form. Is there any way in which this can be achieved?
Before model.save, the changes have all the field's value. When model.save is called, only the actually changed values are there. So, this cleans up the actual Ember Data model, and makes the other fields as empty.!!
Hi @poteto & others,
I am trying to have more than one validated-form in the page, for the same model, taking a changeset.
Different fields will be applicable for each form. But certain fields in one form, is a computed property of another form (the computed property is given in the model itself, so when we save / get, field is computed and received).
Since they are different forms, and each form creates a new model, the model is not updating the other form. Is there any way in which this can be achieved?
Please find this Twiddle for a similar demo.
Many thanks in advance!
The text was updated successfully, but these errors were encountered: