svelte/test/js/samples/data-attribute/input.svelte

6 lines
82 B

<script>
export let bar;
</script>
<div data-foo='bar'/>
<div data-foo='{bar}'/>