svelte/test/runtime/samples/component-events/main.html

14 lines
193 B

8 years ago
<div>
{{#if visible}}
<Widget on:teardown='fire("widgetTornDown")'/>
{{/if}}
</div>
<script>
import Widget from './Widget.html';
export default {
components: { Widget }
};
</script>