Answer the question
In order to leave comments, you need to log in
Vue: How to use dynamic names in v-for loop?
<slot v-for="area in `${ this.$route.params.type }Areas`">
Answer the question
In order to leave comments, you need to log in
Make a getter and calculate the name there. Well, accordingly, return the desired property, and not a string, as it is now.
For example: https://jsfiddle.net/yarkov_aleksei/1ub0enxq/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question