Skip to content

Instantly share code, notes, and snippets.

@danomanion
Last active March 7, 2019 15:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danomanion/13ca98e5b00f7bc733de231c955d2ef9 to your computer and use it in GitHub Desktop.
Save danomanion/13ca98e5b00f7bc733de231c955d2ef9 to your computer and use it in GitHub Desktop.
Vue.js
<div id="app">
<ul>
<li v-for="item in items">
{{ item }}
</li>
</ul>
</div>
new Vue({
el: '#app',
data: {
items: [
'one',
'two',
'three',
'four'
]
}
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.8/vue.min.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment