Created
May 3, 2017 17:49
-
-
Save joshuakarjala/b94730c4b82cbebb1b6aa18f7fb2bbda to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<html> | |
<head> | |
<script src="https://unpkg.com/vue"></script> | |
</head> | |
<body> | |
<div id="app-4"> | |
<ol> | |
<li v-for="todo in todos"> | |
{{ todo.text }} | |
</li> | |
</ol> | |
</div> | |
<script type="text/javascript"> | |
var app4 = new Vue({ | |
el: '#app-4', | |
data: { | |
todos: [ | |
{ text: 'Learn JavaScript' }, | |
{ text: 'Learn Vue' }, | |
{ text: 'Build something awesome' } | |
] | |
} | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment