mirror of https://github.com/sveltejs/svelte
Merge pull request #1402 from sveltejs/gh-1397
evaluate each block key in child scopepull/1408/head
commit
eff431965e
@ -0,0 +1,22 @@
|
||||
export default {
|
||||
dev: true,
|
||||
|
||||
data: {
|
||||
letters: [
|
||||
{
|
||||
id: 1,
|
||||
char: 'a',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
char: 'b',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
char: 'c',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
warnings: [],
|
||||
};
|
@ -0,0 +1,3 @@
|
||||
{#each letters as letter (letter.id)}
|
||||
<div>{letter.char}</div>
|
||||
{/each}
|
Loading…
Reference in new issue