From the course: Vue.js 3 Essential Training

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Deleting items

Deleting items

- [Illustrator] We're almost ready with the applications. So we'll put a button to delete items and start working on our checkout page. To do that, we're going to need a template, and I've put the HTML right here. Make sure that you get the link to the slide from the beginning of this video. So I'm going to copy this, and I'm going to go into my Checkout. That would be under Views, and then Checkout right here. And this is going to go on their template. So that's all for right now. And let's take a look at what we're going to do here in the practice section. We're going to create a DeleteItem Method, and then we're going to add this delete button to the cart so that we can delete items in the cart dropdown. And then finally, we'll add the checkout code which we just did a second ago we copied that over. And finally, we're going to link to the checkout page as well from the dropdown. So let's get to it. We already did…

Contents