You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/validator/samples/rest-eachblock-binding-2/input.svelte

12 lines
199 B

<script>
let objArray = [
[1, 2, 3, "4"],
[5, 6, 7, "8"],
];
</script>
{#each objArray as [id, ...rest] (id)}
<input bind:value={rest[0]} type="text" placeholder={rest[2]} />
<br />
{/each}