mirror of https://github.com/sveltejs/svelte
Merge pull request #1292 from sveltejs/gh-1291
allow keyed each block to have static contentpull/1295/head
commit
77aca3c69b
@ -0,0 +1,10 @@
|
|||||||
|
export default {
|
||||||
|
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