I'm new to working with localStorage in Javascript. I'm doing a CRUD of todo's (I'm working with jsonplaceholder to get the todo's list). The problem is that I have to get the specific element while clicking the button(delete/edit) of that element. I attach an image to see how I have rendered my elements:
What I want here is, when I click the "Delete" button element I want to get that specific element to apply a .splice
and delete that element from the localStorage array.
After that: how can I edit the specific element when I click "Edit".
PS. If works, I'm working with Vue.js
PS2. IF you need more information about the code, please let me know
Best regards!