mirror of https://github.com/sveltejs/svelte
failing test for #1214
parent
ed605bfa79
commit
2124aaf5be
@ -0,0 +1,11 @@
|
|||||||
|
<p>Text in Nested.html: {text}</p>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
oncreate() {
|
||||||
|
this.set({
|
||||||
|
text: 'Changed in Nested'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
@ -0,0 +1,8 @@
|
|||||||
|
export default {
|
||||||
|
'skip-ssr': true,
|
||||||
|
|
||||||
|
html: `
|
||||||
|
<p>text in App.html: Changed in Nested</p>
|
||||||
|
<p>Text in Nested.html: Changed in Nested</p>
|
||||||
|
`
|
||||||
|
};
|
@ -0,0 +1,18 @@
|
|||||||
|
<p>text in App.html: {text}</p>
|
||||||
|
<svelte:component this={cmp} bind:text=text />
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Nested from './Nested.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data: () => ({
|
||||||
|
text: 'initial'
|
||||||
|
}),
|
||||||
|
|
||||||
|
oncreate() {
|
||||||
|
this.set({
|
||||||
|
cmp: Nested
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue