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/flush-before-bindings/main.html

24 lines
342 B

<Nested bind:visibleThings="visibleThings" />
<script>
import Nested from './Nested.html';
export default {
data() {
return {
visibleThings: []
};
},
components: {
Nested
},
oncreate() {
this.snapshots = [];
this.observe('visibleThings', things => {
this.snapshots.push(things);
});
}
};
</script>