v-for i down code example
Example 1: v-for i down
<div id="app">
<template v-for="n in 10"><p>{{ 10 - (n-1) }}</p></template>
</div>
Example 2: v-for i down
<li v-for="item in items.slice().reverse()">
//do something with item ...
</li>
<div id="app">
<template v-for="n in 10"><p>{{ 10 - (n-1) }}</p></template>
</div>
<li v-for="item in items.slice().reverse()">
//do something with item ...
</li>