Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created February 13, 2017 12:13
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 justinyoo/acb5f377064a961aa38c4a9efd5eef7f to your computer and use it in GitHub Desktop.
Save justinyoo/acb5f377064a961aa38c4a9efd5eef7f to your computer and use it in GitHub Desktop.
Running Vue.js on ASP.NET Core Web Application
<script>
export default {
name: 'hello',
data () {
return {
msg: 'Welcome to Your Vue.js App'
}
},
// Send a request to /api/hello
created () {
this.$http
.get('/api/hello')
.then((res) => {
this.msg = res.body.message
})
.catch((ex) => console.log(ex))
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment