You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
357 B
JavaScript
15 lines
357 B
JavaScript
5 years ago
|
const apiEndpoint = '/api_v1/';
|
||
|
|
||
|
const vm = new Vue({
|
||
|
el: '#vm',
|
||
|
delimiters: ['[[', ']]'],
|
||
|
data: {
|
||
|
greeting: 'Hello Vue!',
|
||
|
flaskStats: {}
|
||
|
},
|
||
|
created: async function(){
|
||
|
const gResponse = await fetch(apiEndpoint + 'stats');
|
||
|
const glObject = await gResponse.json()
|
||
|
this.flaskStats = glObject
|
||
|
}
|
||
|
})
|