Polymer 1 nested dom-if within dom-repeat not updating when data changes

后端 未结 1 1700
猫巷女王i
猫巷女王i 2021-01-12 18:27

How do you make dom-if templates within dom-repeat\'s update when the data changes??

Example here http://jsbin.com/xatala/edit?html,output<

1条回答
  •  一向
    一向 (楼主)
    2021-01-12 18:37

    Here is example that works: http://jsbin.com/nejadibuju/edit?html,console,output

    
    

    What you were missing is:

    Explicit bindings to array items by index isn’t supported

    Some explanations are added in the Bin. Related links:

    Polymer, binding to array items not working

    http://plnkr.co/edit/aOmw4e?p=preview

    0 讨论(0)
提交回复
热议问题