I have a provider where I push some items in an array list, this array list is called listaItems, there I save the exercise when the user presses a button and they get saved there without a problem, there is my adding function:
listaItems: any = [];
Now in this provider, I am pushing item.
addItemList(item) {
this.listaItems.push(item);
console.log(this.listaItems.length);
}
It is working fine. But when I want to remove an item from the array list. So how can I do this?
Question and answer is powered by AnsPress.io