mirror of https://github.com/sveltejs/svelte
feat: each without as (#14396)
* feat: each without as WIP closes #8348 * properly * docs * changeset * real world demo * simplify * typo --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/14501/head
parent
a39605ec7a
commit
a283083751
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': minor
|
||||
---
|
||||
|
||||
feat: support `#each` without `as`
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<div>hi</div> <div>hi</div> <div>0</div> <div>1</div>`
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
{#each [10, 20]}
|
||||
<div>hi</div>
|
||||
{/each}
|
||||
|
||||
{#each [10, 20], i}
|
||||
<div>{i}</div>
|
||||
{/each}
|
Loading…
Reference in new issue