mirror of https://github.com/sveltejs/svelte
Merge branch 'issue-2291' of https://github.com/Panya/svelte into Panya-issue-2291
commit
1de58d99c5
@ -0,0 +1,6 @@
|
||||
<div>
|
||||
<slot name="header1" />
|
||||
<slot name="-header2_" />
|
||||
<slot name="3header" />
|
||||
<slot name="_header4" />
|
||||
</div>
|
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
html: `
|
||||
<div>
|
||||
<h1 slot="header1">Header 1</h1>
|
||||
<h2 slot="-header2_">Header 2</h2>
|
||||
<h3 slot="3header">Header 3</h3>
|
||||
<h4 slot="_header4">Header 4</h4>
|
||||
</div>
|
||||
`
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
import Nested from './Nested.svelte';
|
||||
</script>
|
||||
|
||||
<Nested>
|
||||
<h1 slot="header1">Header 1</h1>
|
||||
<h2 slot="-header2_">Header 2</h2>
|
||||
<h3 slot="3header">Header 3</h3>
|
||||
<h4 slot="_header4">Header 4</h4>
|
||||
</Nested>
|
Loading…
Reference in new issue