mirror of https://github.com/sveltejs/svelte
parent
a710b1311c
commit
d2b0b38235
@ -0,0 +1,3 @@
|
||||
<script>
|
||||
export let value = 'foo';
|
||||
</script>
|
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
html: `
|
||||
<p>Reactive: foo</p>
|
||||
<p>Value: foo</p>
|
||||
`
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import Widget from './Widget.svelte';
|
||||
let value;
|
||||
$: reactive = value;
|
||||
</script>
|
||||
|
||||
<Widget bind:value/>
|
||||
<p>Reactive: {reactive}</p>
|
||||
<p>Value: {value}</p>
|
Loading…
Reference in new issue