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