Skip to content

Instantly share code, notes, and snippets.

@cristijora
Last active August 12, 2017 19:35
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 cristijora/5280f5f85cd058e892c83ebb37fd2d30 to your computer and use it in GitHub Desktop.
Save cristijora/5280f5f85cd058e892c83ebb37fd2d30 to your computer and use it in GitHub Desktop.
.NET MVC & Vue.js simple example
@using System.Web.Optimization
@{
ViewBag.Title = "Home Page";
}
<div id="app">
{{ message }}
</div>
@Scripts.Render("~/node_modules/vue/dist/vue.min.js")
<script>
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!'
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment