mirror of https://github.com/sveltejs/svelte
allow keyed each block to have static content - fixes #1291
parent
78f506a50b
commit
2c670a43ac
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
solo: true,
|
||||
|
||||
data: {
|
||||
x: [{ z: 1 }, { z: 2 }],
|
||||
},
|
||||
|
||||
html: `
|
||||
<p>does not change</p>
|
||||
<p>does not change</p>
|
||||
`
|
||||
};
|
@ -0,0 +1,3 @@
|
||||
{{#each x as y @z}}
|
||||
<p>does not change</p>
|
||||
{{/each}}
|
Loading…
Reference in new issue