Skip to content

Instantly share code, notes, and snippets.

@kevinnio
Created April 26, 2019 22:50
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 kevinnio/f2d85835c51a5e5107a272ec11b1f3a7 to your computer and use it in GitHub Desktop.
Save kevinnio/f2d85835c51a5e5107a272ec11b1f3a7 to your computer and use it in GitHub Desktop.
<div id="app">
<h1>Friend list</h1>
<ul>
<li v-for="friend in friends">{{ friend.name }}</li>
</ul>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
const app = new Vue({
el: '#app',
data: { friends: [{ name: 'Vue' }, { name: 'React' }, { name: 'Angular' }] }
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment