Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
Source by svelte.dev #
 
PREVIOUS NEXT
Tagged: #svelte #loop
ADD COMMENT
Topic
Name
1+4 =