Answer the question
In order to leave comments, you need to log in
How to correctly substitute a variable in the to attribute in nuxt-link?
Good evening. Can you please tell me how to correctly substitute a variable in the to attribute?
<li v-for="city in cities">
<nuxt-link to="/cities/{{city.id}}" :key="city.id">{{city.title}}</nuxt-link>
</li>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question