F
F
frolova_elena2018-07-12 20:18:29
JavaScript
frolova_elena, 2018-07-12 20:18:29

How to display img in an array?

You need to output img(photo) v-for . How to do it ?

menu: [{
          name: 'dashboard',
          page: '/dashboard',
          image: "",
          child: []
        }, {
          name: 'news',
          page: '/news,
          image " ",
          child: []
}]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Askhat Bikmetov, 2018-07-12
@frolova_elena

<img v-for="item in menu" :src="item.image"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question