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.
svelte/test/runtime/samples/observe-binding-ignores-unc.../main.html

21 lines
348 B

<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>