mirror of https://github.com/sveltejs/svelte
13 lines
191 B
13 lines
191 B
8 years ago
|
<button class='foo' on:click='set({ x: "p" })'>foo</button>
|
||
|
<p>foo x: {{x}}</p>
|
||
|
|
||
|
<Bar bind:x/>
|
||
|
|
||
|
<script>
|
||
|
import Bar from './Bar.html';
|
||
|
|
||
|
export default {
|
||
|
components: { Bar }
|
||
|
};
|
||
|
</script>
|