currently I’m facing the challange of relationships between input-fields in one form and would like to ask you if you have any clever ideas for me to solve that.
I have to input fields:
<input value.bind="mymodel.attribute1" /> <input value.bind="mymodel.attribute2" if.bind="!mymodel.attribute1" />
Now, in case the user first fills the attribute2 and after that attribute1, the second attribute input field disappears as expected, but the information is still stored and send via POST.
Does aurelia have any cool feature to prevent the sending of “hidden” input fields?
In my current project I have also dependencies from child-model to parent model which is quite hard and ugly to validate :’(