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.
33 lines
463 B
33 lines
463 B
<template>
|
|
<div id="app">
|
|
<section>
|
|
<h1>Transit Board</h1>
|
|
<p>
|
|
{{ now.getHours() }}:{{ now.getMinutes() }}:{{ now.getSeconds() }}
|
|
</p>
|
|
</section>
|
|
<section>
|
|
<p>data go here</p>
|
|
</section>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
name: 'app',
|
|
data: function () {
|
|
return {
|
|
now: new Date()
|
|
}
|
|
},
|
|
created () {
|
|
setInterval(() => {
|
|
this.now = new Date()
|
|
}, 1000)
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|