T
T
Tereverda2021-06-20 17:12:53
Vue.js
Tereverda, 2021-06-20 17:12:53

Vue js object element access?

There is an array in data, in the screenshot its output in the console.
It is not possible to enumerate
{%%} - this is the output template instead of the standard {{ }}
In the console, access is console.log(this.boxes[0].height);
{% box.height %} syntax problem

<ul>
      <li v-for="box in boxes">
        {% box.height %}
      </li>
    </ul>

60cf4cda9cc43690766651.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-06-20
@Aetae

Everything works, the problem is somewhere else:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question