[Vuejs]-How to get id for axios request?

0👍

You have access to item in the scope of your v-for tag/block. Just do <a @click="AddCart(item.id)"></a>, and receive the argument with AddCart(id) {}

Leave a comment