mirror of https://github.com/sveltejs/svelte
deconflict `value` parameter in contextual bindings (#4452)
parent
138213ca3c
commit
3bfa0e5cd6
@ -0,0 +1,3 @@
|
|||||||
|
<script>
|
||||||
|
export let prop;
|
||||||
|
</script>
|
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
preserveIdentifiers: true
|
||||||
|
};
|
@ -0,0 +1,8 @@
|
|||||||
|
<script>
|
||||||
|
import Widget from './Widget.svelte';
|
||||||
|
const values = ['foo', 'bar'];
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#each values as value}
|
||||||
|
<Widget bind:value/>
|
||||||
|
{/each}
|
Loading…
Reference in new issue