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