-
-
Save justinyoo/acb5f377064a961aa38c4a9efd5eef7f to your computer and use it in GitHub Desktop.
Running Vue.js on ASP.NET Core Web Application
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> | |
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