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

12 lines
212 B

<:Switch { x ? Foo : Bar } on:select='set({ selected: event.id })'/>
<script>
import Foo from './Foo.html';
import Bar from './Bar.html';
export default {
data() {
return { Foo, Bar };
}
};
</script>