Answers for "fucntion in svelte with for loop"

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