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