Answers for "for loop in svelte script"

2

svelte for loop

<ul>
	{#each cats as cat}
		<li><a target="_blank" href="https://www.youtube.com/watch?v={cat.id}">
			{cat.name}
		</a></li>
	{/each}
</ul>
Posted by: Guest on July-09-2021

Browse Popular Code Answers by Language