Primárně pro 4.IM - vue aplikace pro zpracovávání json souboru
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.
 
 
 

29 lines
425 B

<template>
<div>
<h2>test</h2>
<p> {{ date }} </p>
</div>
</template>
<script>
export default {
name: 'jsonView',
data: () => ({
date: ''
}),
methods: {
printDate: function () {
return new Date().toLocaleDateString();
}
},
mounted: function () {
this.date = this.printDate();
},
}
</script>
<style scoped>
h4{
color: blue;
}
</style>