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/bindings-before-oncreate/Two.html

15 lines
147 B

7 years ago
<script>
export default {
data() {
return {
bar: 1
};
},
computed: {
foo({ bar }) {
7 years ago
return bar * 2;
}
}
};
</script>