mirror of https://github.com/sveltejs/svelte
parent
67f79dd934
commit
9e9acace2e
@ -0,0 +1,5 @@
|
|||||||
|
export default {
|
||||||
|
test({ component }) {
|
||||||
|
component.$destroy();
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
import { onMount } from 'svelte';
|
||||||
|
let e;
|
||||||
|
onMount(() => {
|
||||||
|
e.remove();
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div bind:this={e} />
|
||||||
Loading…
Reference in new issue