Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

svlete each index

{#each cats as { id, name }, i}
    <li>
      <a target="_blank" href="https://www.youtube.com/watch?v={id}">
          {i + 1}: {name}
      </a>
   </li>
{/each}
Source by svelte.dev #
 
PREVIOUS NEXT
Tagged: #svlete #index
ADD COMMENT
Topic
Name
6+7 =