Created
August 31, 2022 15:03
-
-
Save fstbraz/324cb404b1b9ad3801f67d57ec56623f to your computer and use it in GitHub Desktop.
cross-framework-web-components-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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