Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete from array in angular

removeTask(data:any){
    const index: number = this.list.indexOf(data);
    if (index !== -1) {
        this.list.splice(index, 1);
    } 
  }
 
PREVIOUS NEXT
Tagged: #delete #array #angular
ADD COMMENT
Topic
Name
2+5 =