Created
December 5, 2017 23:21
-
-
Save howdoicomputer/cdadba6e47021ba90b7f753ff72772dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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