I am looking to add a new functionality where clicking on the "select All" checkbox will move the selected items to a new array and remove them from the current one.
Although I tried using the splice function, I was unsuccessful in deleting all items from the first table.
Please help
Here is a sample plnkr that I have put together. When I click on "select All" in the first table, I want all its items to be added to the "New Table" and simultaneously removed from the "First Table (named Old Table)