Answer the question
In order to leave comments, you need to log in
How to get the length of a vue array?
Hello.
There is an array that lies in data
data () {
return {
arrayLength: array.length, // тут я делаю не правильно, я знаю
array: [
{
title: '0'
},
{
title: '1'
},
{
title: '2'
},
<p>{{ arrayLength }}</p> // должно получится 3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question