v-für
<ul>
<li v-for="(item, index) in items">
{{ index }} - {{ item }}
</li>
</ul>
Freeburn
<ul>
<li v-for="(item, index) in items">
{{ index }} - {{ item }}
</li>
</ul>
<div v-on:javascriptEvent = "method"></div>
<!-- v-on:click <=> @click -->
// with v=bind
<p><a v-bind:href="website">Text goes here fo the link </a> </p>
//or with :
<p><a :href="website">Text goes here fo the link </a> </p>
//website is variable/property with link in a Vue instance
<div id="example-3">
<button v-on:click="say('salut')">Dire salut</button>
<button v-on:click="say('quoi')">Dire quoi</button>
</div>
new Vue({
el: '#example-3',
methods: {
say: function (message) {
alert(message)
}
}
})