Answers for "delete from array in angular"

0

delete from array in angular

removeTask(data:any){
    const index: number = this.list.indexOf(data);
    if (index !== -1) {
        this.list.splice(index, 1);
    } 
  }
Posted by: Guest on July-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language