We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c8114 commit 8c8a9f9Copy full SHA for 8c8a9f9
src/App.vue
@@ -15,6 +15,7 @@
15
</div>
16
<div class="row" style="height: 15%; padding-top: 1vw;">
17
<div class="col-md-12">
18
+ <h2 style="text-align: left;">{{ time }}</h2>
19
20
21
@@ -28,7 +29,15 @@ import './app.css'
28
29
@Component({
30
components: {}
31
})
-export default class App extends Vue {}
32
+export default class App extends Vue {
33
+ private time: string = ''
34
+
35
+ private mounted (): void {
36
+ setInterval(() => {
37
+ this.time = new Date().toLocaleString()
38
+ }, 1000)
39
+ }
40
+}
41
</script>
42
43
<style>
@@ -37,6 +46,10 @@ h1 {
46
text-align: left;
47
}
48
49
+h2 {
50
+ font-size: 2.5em;
51
52
53
#app {
54
font-family: 'Avenir', Helvetica, Arial, sans-serif;
55
-webkit-font-smoothing: antialiased;
0 commit comments