mirror of https://github.com/sveltejs/svelte
Merge pull request #307 from sveltejs/gh-222-b
Deconflict each-blocks contexts with reserved wordspull/309/head
commit
c3ebf25c20
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
html: `
|
||||
<ul><li>foo</li><li>bar</li><li>baz</li></ul>
|
||||
`,
|
||||
|
||||
data: {
|
||||
components: [ 'foo', 'bar', 'baz' ]
|
||||
}
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<ul>
|
||||
{{#each components as component}}
|
||||
<li>{{component}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
Loading…
Reference in new issue