[Vuejs]-I am new to vue and I can seem to get a response for this.$http.get('url', function(data)) in Vue

2👍

Replace your call with:

this.$http.get('/api/events').then((response) => {
  console.log(response.data) 
}, (error) => {
  console.log(error)
})

Check the docs for more info

👤Sven

Leave a comment