Within the following code snippet, the push
function is utilized to transfer only the checked row from an array to another. Despite the successful execution of the push
operation, the view does not reflect this update.
onNextclick() {
this.disable1 = false;
this.selectedIndex += 1;
this.disable = true;
const filteredItems = this.dataSource.filter(p => p.isChecked);
this.datasource2.push(...filteredItems);
}