[mod] vuetify

This commit is contained in:
Andy Bunce 2022-01-07 21:59:21 +00:00
parent 3411ef7c9f
commit e619617cde
3 changed files with 6 additions and 8 deletions

View file

@ -1,24 +1,21 @@
// app
Vue.use(Vuetify);
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!',
json: null,
json: links,
hits:0,
loaded: null
},
filters: {
pretty: function(value) {
return JSON.stringify(JSON.parse(value), null, 2);
}
},
methods:{
load() {
this.loaded = new Date()
this.hits += 1
fetch("links.json")
.then(response => response.json())
.then(data => (this.json = data));
.then(data => (this.links = data));
}
},
mounted () {