Last active
August 12, 2017 19:35
-
-
Save cristijora/5280f5f85cd058e892c83ebb37fd2d30 to your computer and use it in GitHub Desktop.
.NET MVC & Vue.js simple example
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
@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