V
V
Vladimir Golub2021-05-14 15:19:55
Vue.js
Vladimir Golub, 2021-05-14 15:19:55

Why does vue add quotes before the table when using map in a template string?

I want to create a table in a template string, but quotes are added to the very beginning, how can I fix this?
https://jsfiddle.net/xzt3vhb0/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2021-05-14
@RazerVG

On the result, you need to .join('')call
https://jsfiddle.net/yarkov_aleksei/vgx3sb16/

A
Alexander, 2021-05-14
@Aleksandr-JS-Developer

Are you trying to use the React approach in Vue.
You need to look into the directive https://jsfiddle.net/alexander_js_developer/dp4crouw/1/v-for

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question