Skip to content

Instantly share code, notes, and snippets.

@kevinnio kevinnio/v-for-3.html Secret
Created Apr 26, 2019

Embed
What would you like to do?
<div id="app">
<h1>Friend list</h1>
<ul>
<li v-for="value in friends">{{ value }}</li>
</ul>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
const app = new Vue({
el: '#app',
data: { friends: { first: 'Vue', second: 'React', third: 'Angular' } }
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.