mirror of https://github.com/sveltejs/svelte
Fix issue #3508
parent
14a46a17d0
commit
20670aa698
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
html: `
|
||||
<p>my name is john</p>
|
||||
<p>my color is blue</p>
|
||||
<p>bound name is john</p>
|
||||
<p>bound color is blue</p>`,
|
||||
};
|
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
let alias;
|
||||
let color;
|
||||
export { alias as name, color };
|
||||
</script>
|
||||
|
||||
<p>my name is {alias}</p>
|
||||
<p>my color is {color}</p>
|
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
import Component from './component.svelte';
|
||||
|
||||
let name = 'john';
|
||||
let color = 'blue';
|
||||
</script>
|
||||
|
||||
<Component bind:name bind:color />
|
||||
<p>bound name is {name}</p>
|
||||
<p>bound color is {color}</p>
|
Loading…
Reference in new issue