Removing latest item from drop list


I am working on angular drag and drop. My Code is as follows

The item which I am dropping will always be dropped at end of done list. I want to have a "X" mark on latest item dropped(suppose user drags and drops item1 then "X" should be on items1 and if user drags and drops item2 then "X" should be only on item2) so that if user wishes user can click on "X" and item is removed from done list and get back to the "TO DO" list again.

Source: Angular Questions

Categorized as angular, angular10, angular8, angular9, drag-and-drop Tagged , , , ,


The goal is to store the index of last element and then apply logic in the template

Edward Donnelly

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us