mirror of https://github.com/sveltejs/svelte
parent
25a18ab495
commit
cfdc8902ab
@ -1,17 +1,17 @@
|
|||||||
<p>
|
<p>
|
||||||
The hour is
|
The hour is
|
||||||
<strong>{{hours}}</strong>
|
<strong>{{hours}}</strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
time: new Date()
|
time: new Date()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
"hours-hyphen": time => time.getHours()
|
"hours-hyphen": time => time.getHours()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in new issue