removeTask(data:any){
const index: number = this.list.indexOf(data);
if (index !== -1) {
this.list.splice(index, 1);
}
}
removeElement(data:any){
const index: number = this.list.indexOf(data);
if (index !== -1) {
this.list.splice(index, 1);
}
}