Closed heruan closed 8 years ago
Is it possibile to bind to the presence of an item in a collection, like Set, Map or Array?
Set
Map
Array
For example, say we have set1 and set2:
set1
set2
<li repeat.for="item of set1"> ${item.value} <span if.bind="set2.has(item)">(present in set2)</span> </li>
I tried this but it doesn't update when set2 changes.
Would this work for you? https://gist.run/?id=61b94e889c95d4336de7
@EisenbergEffect thoughts?
Clever.
@heruan can this be closed?
Is it possibile to bind to the presence of an item in a collection, like
Set
,Map
orArray
?For example, say we have
set1
andset2
:I tried this but it doesn't update when
set2
changes.