Created
December 5, 2017 23:21
-
-
Save howdoicomputer/aecf96d32cd80df9156c56ea9c507ddd 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
<script lang="ts"> | |
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'] | |
}) | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment