[Vuejs]-How to pass props dynamically in vue

0👍

Your problem is that you mixed the v-bind directive with its shorthand :.

You wrote :v-bind:id instead of v-bind:id (or :id).

With your code, you should be able to get the id by defining the props v-bind:id in the child. It will work since :v-bind:id will be converted as v-bind:v-bind:id.

Leave a comment