Skip to content

Instantly share code, notes, and snippets.

@howdoicomputer
Created December 5, 2017 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save howdoicomputer/cdadba6e47021ba90b7f753ff72772dd to your computer and use it in GitHub Desktop.
Save howdoicomputer/cdadba6e47021ba90b7f753ff72772dd to your computer and use it in GitHub Desktop.
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