Hi!
I want to know how can i do something like that https://vaadin.com/docs/v13/flow/polymer-templates/tutorial-template-list-bindings.html (this is on poylmer, but i want to know how is on LitElement)
In my case i have on polymer, and i want to move to LitElement
<template is="dom-repeat" items="{{topPlays}}">
<li class="play">{{item.play}}
<span class="amount">{{item.amount}}</span>
</li>
</template>
On my LitElement template i use
static get properties() {
return {
topPlays: {type: Array}
}
}
On java code i have using polymer
public interface ChartsPanelModel extends TemplateModel {
void setTopPlays(List<TopPlay> topPlays);
}
How can i do on LitElement? i can’t use setAttribute on a Array or a List