mirror of https://github.com/sveltejs/svelte
parent
55d8636fe7
commit
fa3a854c79
@ -0,0 +1,13 @@
|
|||||||
|
<h1>Hello {name}!</h1>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data: () => ({
|
||||||
|
name: 'world',
|
||||||
|
foo: 'bar'
|
||||||
|
}),
|
||||||
|
computed: {
|
||||||
|
comp: ({ name, ...rest }) => rest
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue