Answer the question
In order to leave comments, you need to log in
How to display a list on vue in a tag?
The question is probably stupid as hell.
I want to remove images from the list.
the list contains only filenames.
data: {
items: [
{ namefile: 'v-123' },
{ namefile: 'v-124' },
{ namefile: 'v-125' },
{ namefile: 'v-126' },
{ namefile: 'v-127' },
{ namefile: 'v-128' }
]
}
{{ item.namefile }} - выводит название. Всё норм.
<img src="@/assets/images/{{ item.namefile }}.jpg">
Answer the question
In order to leave comments, you need to log in
<img :src="’@/assets/images/${ item.namefile }.jpg’">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question