[mod] vuetify
This commit is contained in:
parent
3411ef7c9f
commit
e619617cde
3 changed files with 6 additions and 8 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue