mirror of https://github.com/sveltejs/svelte
parent
34eb6efedc
commit
4af59e463f
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
let objArray = [{foo: '1', id: 0, innerValue: "test"}, {foo: '2', id:1, innerValue: "Somethin"}]
|
||||
</script>
|
||||
|
||||
{#each objArray as { id, ...rest } (id)}
|
||||
<input bind:value={rest.innerValue} type="text" placeholder={rest.foo}/>
|
||||
<br/>
|
||||
{/each}
|
||||
@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"code": "invalid-rest-eachblock-binding",
|
||||
"message": "...rest operator will create a new object and binding propogation with original object will not work"
|
||||
}
|
||||
]
|
||||
Loading…
Reference in new issue