How to delete the certain data from array

I am new in ionic 4. I am doing shopping cart function. I want to delete the selected item. But it delete like pop function not delete the certain item. I have follow this tutorial :

Anyone can help me?

I’m not entirely sure what you’re asking, but here’s something that can be pretty confusing for newcomers to Angular, and might be related to your problem:

Change detection doesn’t see when you have poked around in the internals of an object (as you are doing to selectedItems with that splice call). There are several strategies for designing this limitation away: I think the simplest one is “treat every object you want Angular change detection to care about as immutable”. One way to do that here would be to use filter instead of splice, so that a new array is made on each deletion.