I'm trying to update a project of mine to work with Polymer 1.0, and I've gotten stuck on the whole two-way-binding and notification system. Where Polymer 0.5 took care of this for you I can't seem to be able to do this in 1.0.
I have to create an object for my API looking like this:
{
"create": [{
"classes": ["Person"],
"HasName": [{
"givenNames": ["Paula"],
"familyNames": ["Vaandrager"]
}]
}, {
"id": "bvhme",
"classes": ["Person", "User"],
"HasName": [{
"givenNames": ["Boris", "Hendrik"],
"familyNames": ["van Hoytema"]
}, {
"givenNames": ["Boris", "Hendrik"],
"familyNames": ["Vaandrager"]
}]
}]
}
I've figured out how to render this using dom-repeat elements, but if I make an iron-input whenever I change that the changes do not propagate into my model.
Ideally I'd even create an element for editing every object and for the sub-objects inside it. But I feel overwhelmed by the complexity of this if I have to specify every single notification that can happen, aside from me not understanding what these things do at all as well.