mirror of https://github.com/sveltejs/svelte
24 lines
266 B
24 lines
266 B
8 years ago
|
<div>
|
||
|
{{#if arriving}}
|
||
|
<Widget>Hello</Widget>
|
||
|
{{else}}
|
||
|
<Widget>Goodbye</Widget>
|
||
|
{{/if}}
|
||
|
</div>
|
||
|
|
||
|
<script>
|
||
|
import Widget from './Widget.html';
|
||
|
|
||
|
export default {
|
||
|
data () {
|
||
|
return {
|
||
|
arriving: true
|
||
|
}
|
||
|
},
|
||
|
|
||
|
components: {
|
||
|
Widget
|
||
|
}
|
||
|
};
|
||
|
</script>
|