mirror of https://github.com/sveltejs/svelte
commit
18a98c0f62
@ -0,0 +1 @@
|
||||
<slot name="name"></slot>
|
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
preserveIdentifiers: true,
|
||||
|
||||
html: `
|
||||
<span slot="name">Hello world</span>
|
||||
`
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import Nested from './Nested.svelte';
|
||||
|
||||
let name = 'world';
|
||||
</script>
|
||||
|
||||
<Nested>
|
||||
<span slot="name">Hello {name}</span>
|
||||
</Nested>
|
Loading…
Reference in new issue