Skip to content

Instantly share code, notes, and snippets.

@fstbraz
Created August 31, 2022 15:03
Show Gist options
  • Save fstbraz/324cb404b1b9ad3801f67d57ec56623f to your computer and use it in GitHub Desktop.
Save fstbraz/324cb404b1b9ad3801f67d57ec56623f to your computer and use it in GitHub Desktop.
cross-framework-web-components-8
...
import { html, LitElement } from 'lit';
import { repeat } from 'lit/directives/repeat.js';
@customElement('cards-images')
export class Cards extends LitElement {
...
render() {
return html` <div class="cards">
<ul>
${repeat(this.cards, (current) => html` <card-image .card=${current}></card-image> `)}
</ul>
</div>`;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment