mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
348 B
21 lines
348 B
7 years ago
|
<Nested ref:nested bind:field1="myObject.field1" bind:field2="myObject.field2" />
|
||
|
<p>field1: {{myObject.field1}}</p>
|
||
|
<p>field2: {{myObject.field2}}</p>
|
||
|
|
||
|
<script>
|
||
|
import Nested from './Nested.html';
|
||
|
|
||
|
export default {
|
||
|
components: {
|
||
|
Nested
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
myObject: {
|
||
|
field1: 1,
|
||
|
field2: 2
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
</script>
|