mirror of https://github.com/sveltejs/svelte
24 lines
342 B
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> |