<html>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<body>
<h2>Vue.js</h2>
<div id="app">
<ul>
<li v-for="x in todos">
{{ x.text }}
</li>
</ul>
</div>
<script>
myObject = new Vue({
el: '#app',
data: {
todos: [
{ text: 'Learn JavaScript' },
{ text: 'Learn Vue.js' },
{ text: 'Build Something Awesome' }
]
}
})
</script>
</body>
<!-- Mirrored from www.w3schools.com/whatis/tryit.asp?filename=trywhatis_vue_3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:56:10 GMT -->
</html>