Created
December 6, 2019 17:49
-
-
Save BrunoAlencar/d5738eda50e3582a5454c129a94bb0f2 to your computer and use it in GitHub Desktop.
Vue 2
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
<div id="app"> | |
<ul> | |
<li v-for="fruit in fruits"> {{ fruit.name }} </li> | |
</ul> | |
</div> | |
new Vue({ | |
el: '#app', | |
data: { | |
fruits: [ | |
{ name: 'banana' }, | |
{ name: 'apple' }, | |
{ name: 'orange' } | |
] | |
}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment