mirror of https://github.com/sveltejs/svelte
Merge pull request #226 from sveltejs/gh-221
SSR – handle component directives at positions other than endpull/227/head
commit
2a13e29a31
@ -0,0 +1 @@
|
|||||||
|
<p>{{foo}}</p>
|
@ -0,0 +1 @@
|
|||||||
|
<div><p>42</p></div>
|
@ -0,0 +1 @@
|
|||||||
|
<div><p>42</p></div>
|
@ -0,0 +1,13 @@
|
|||||||
|
<div><Widget ref:widget foo='{{foo}}'/></div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Widget from './Widget.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { Widget },
|
||||||
|
|
||||||
|
data () {
|
||||||
|
return { foo: 42 }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue