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/validator/samples/properties-computed-must-be.../input.html

18 lines
208 B

<p>
The hour is
<strong>{{hours}}</strong>
</p>
<script>
export default {
data() {
return {
time: new Date()
};
},
computed: {
"hours-hyphen": time => time.getHours()
}
};
</script>