Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import Vue from 'vue'
import axios from 'axios'
export default Vue.extend({
name: 'HelloWorld',
data () {
return {
msg: ''
}
},
mounted () {
axios.get(`http://localhost:3000`)
.then(response => {
this.msg = response.data['message']
})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.