Skip to content

Instantly share code, notes, and snippets.

@Adron
Created December 27, 2018 06:41
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 Adron/166c3ffbcce1cfdd9f1163b87756485e to your computer and use it in GitHub Desktop.
Save Adron/166c3ffbcce1cfdd9f1163b87756485e to your computer and use it in GitHub Desktop.
Hello world for Vue.js!
<script src="https://unpkg.com/vue"></script>
<div id="app">
<p id="hello">{{ message }} hi!</p>
</div>
<script>
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!'
}
})
</script>
<style>
#hello {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment