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 } })