mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-15 12:24:47 +00:00
@@ -1,11 +1,13 @@
|
||||
<svelte:component this={Title}/>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
oncreate() {
|
||||
import('./_components/Title.html').then(({ default: Title }) => {
|
||||
this.set({ Title });
|
||||
});
|
||||
}
|
||||
};
|
||||
</script>
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
export let Title;
|
||||
|
||||
onMount(() => {
|
||||
import('./_components/Title.html').then(mod => {
|
||||
Title = mod.default;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:component this={Title}/>
|
||||
Reference in New Issue
Block a user