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/server-side-rendering/samples/computed/main.html

12 lines
170 B

7 years ago
<p>{a} + {b} = {c}</p>
<p>{c} * {c} = {cSquared}</p>
8 years ago
<script>
export default {
computed: {
7 years ago
c: ({ a, b }) => a + b,
cSquared: ({ c }) => c * c
8 years ago
}
};
</script>