[Vuejs]-VueJS โ€“ How to keep UserID's after fetching from API for deleting, editing user?

0๐Ÿ‘

โœ…

I suppose that your user object has prop id, so you can pass that id to @click handler method.

<button @click="deleteUser(user.id)">Delete</button>

Leave a comment