I want to remove an item from a stored array in angular 2, with Type Script. I am using a service called Data Service, the DataService Code:
export cl
I think the Angular 2 way of doing this is the filter method:
this.data = this.data.filter(item => item !== data_item);
where data_item is the item that should be deleted