In my setup, I have a container that houses two distinct components. The first component receives a list of users from the backend.
Upon clicking on a specific user, I aim to display all of their detailed information in the main container of the second component.
To view my code, you can check it out on Stackblitz
However, I am facing an issue where removing an added component does not function correctly. Instead of deleting the selected component, it only removes the last one. Can someone assist me in identifying and resolving this error?