A
A
Alianos2021-05-03 13:58:54
Vue.js
Alianos, 2021-05-03 13:58:54

How to use v-for backwards for numbers?

Hello, we can use or use a filter But what about numbers, for example, I need to display numbers from 10 to 0v-for="(num, inx) of myArray.slice().reverse()"v-for="item in myArray | reverse"

<div v-for="(num, inx) of 10">inx</div> //ето выводит от 0 до 10 а мне нужно наоборот...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2021-05-03
@Alianos

https://stackoverflow.com/questions/56469178/loopi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question