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<
Here is example that works: http://jsbin.com/nejadibuju/edit?html,console,output
<template is="dom-if"
if="{{arrayItem(myItems.*, index, 'isGood')}}">
[[item.title]] is SOOO good.
</template>
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