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
174 B

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