You will have to convert your list to the structure within the component
When an item from the list is clicked, both the id from the item inputed, and its index in the list are returned in an event format. With that you can retrieve whatever element you wanted from the original list.