You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime-browser/custom-elements-samples/nested/main.svelte

17 lines
325 B

<svelte:options customElement="my-app" />
<script>
import { setContext } from "svelte";
import Counter from "./Counter.svelte";
export let count;
export let counter;
setContext("context", "works");
</script>
<Counter bind:count bind:this={counter}>
<span>slot {count}</span>
</Counter>
<p>clicked {count} times</p>