N
N
nazarina_nataliya2019-10-31 23:04:28
Vue.js
nazarina_nataliya, 2019-10-31 23:04:28

Why in vue.js interpolation doesn't render the value?

5dbb3d6614f28041029465.png5dbb3d7389059884718934.png
Using interpolation, I insert values ​​from vue into html. On the screen, in the place where it is underlined in green, everything is displayed correctly, and in the place where it is underlined in red, it does not display anything, just an empty space. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-10-31
@nazarina_nataliya

Because it goes outside the scope of the v-for loop. There is no perfume variable) The perfume variable is only available inside a tag <li>that has a v-for directive applied to it. At what at any nesting level inside, but not outside.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question