mirror of https://github.com/sveltejs/svelte
parent
bbdb87adac
commit
8e96699044
@ -0,0 +1 @@
|
|||||||
|
<div></div>
|
@ -0,0 +1 @@
|
|||||||
|
export default {};
|
@ -0,0 +1,20 @@
|
|||||||
|
{{#if visible}}
|
||||||
|
<Foo bind:answer/>
|
||||||
|
{{else}}
|
||||||
|
<Foo bind:answer/>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Foo from './Foo.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data: () => ({
|
||||||
|
visible: true,
|
||||||
|
answer: 42
|
||||||
|
}),
|
||||||
|
|
||||||
|
components: {
|
||||||
|
Foo
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue