mirror of https://github.com/sveltejs/svelte
handle component directives at positions other than end (fixes #221)
parent
620b9ae5e8
commit
11dc7dc380
@ -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