mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
266 B
18 lines
266 B
4 years ago
|
<script>
|
||
|
import action from './util.js';
|
||
|
export let collect;
|
||
|
|
||
|
function each_action(_, fn) {
|
||
|
fn('each_action');
|
||
|
}
|
||
|
const array = [each_action];
|
||
|
</script>
|
||
|
|
||
|
<div use:action={collect} />
|
||
|
|
||
|
<ul>
|
||
|
{#each array as action}
|
||
|
<div use:action={collect} />
|
||
|
{/each}
|
||
|
</ul>
|