My stackblitz link (Please bare with my UI. I have created it just to understand the concept)
When I choose 'Select all' and then start deselecting A,B,... , the elements are getting spliced from the mainList. But in my typescript file I have spliced the element only from the filteredList and not from my mainList. Kindly explain how removing an element from the filteredList also removes it from mainList. Am I doing anything wrong here? Or If this is the functionality which could not be changed, how could I reserve my mainList without getting sliced.
I have checked with below links. But they didn't work