mirror of https://github.com/sveltejs/svelte
attempt to fix #1214
parent
0ac77019d0
commit
8171c1935c
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
oncreate() {
|
||||||
|
this.set({text: 'correct'});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
'skip-ssr': true,
|
||||||
|
|
||||||
|
html: `
|
||||||
|
<p>Text: correct</p>
|
||||||
|
`
|
||||||
|
};
|
@ -0,0 +1,20 @@
|
|||||||
|
<:Component {Child} bind:text=text />
|
||||||
|
<p>Text: {{text}}</p>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Nested from './Nested.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data: () => ({
|
||||||
|
text: 'incorrect',
|
||||||
|
Child: null,
|
||||||
|
}),
|
||||||
|
|
||||||
|
oncreate() {
|
||||||
|
this.set({
|
||||||
|
Child: Nested
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue