Created
October 29, 2018 18:18
-
-
Save anderaus/2a9bddfaf9914c3768b82ed89ffb6fbf to your computer and use it in GitHub Desktop.
Minimal vue cdn starter
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<div id="app"> | |
<h1>{{heading}}</h1> | |
<ul style="list-style: none"> | |
<li> | |
Et dyr | |
</li> | |
</ul> | |
</div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script> | |
<script> | |
new Vue({ | |
el: '#app', | |
data: { | |
heading: 'Dyrehage', | |
animals: ['Alpakka', 'Giraff', 'Dovendyr', 'Elg'] | |
} | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment