vuejs v-per l'indice di matrice
<!-- To gain access to the array index: -->
<ul>
<li v-for="(game, index) in games"></li>
</ul>
<!--
You only want the index in specific cases. Use `:key` as
standard. See the other greps.
-->
vue v-se
<div v-if="Math.random() > 0.5">
Now you see me
</div>
<div v-else>
Now you don't
</div>
v - se vuejs
<h1 v-if="awesome">Vue is awesome !</h1>
<h1 v-else-if="sowSow">Vue is not very nice !</h1>
<h1 v-else>Vue is baaaad !</h1>
v-per
<ul>
<li v-for="(item, index) in items">
{{ index }} - {{ item }}
</li>
</ul>
vue se
<h1 v-if="variable">Vue is awesome!</h1>
vue v-se confronta stringa
<span v-for="role in user.roles">
<span v-if="role.name == 'Admin'">Yes</span>
<span v-else>-</span>
</span>