P
P
picka2020-09-15 10:22:32
Vue.js
picka, 2020-09-15 10:22:32

How to embed mustache in src of an image?

<img src="http://site.com/image/{{card.alias}}.jpg">


Such a construction does not work, no matter how I try to shield it, how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Vasilev, 2020-09-15
@picka

<img :src="'http://site.com/image/' + card.alias + '.jpg'">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question