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.

Refactoring navigation

Refactoring navigation

- [Instructor] Alright, so we're going to do something that is known as refactoring to our navigation, it really just means moving things around and reorganizing how we're doing things to make them better. So here's what we're going to do. In order to take care of this, first, we'll do some housekeeping and remove our custom alert component, it's still hanging in there. And I just used it to show you some techniques. But we don't really need that in this application, then we're going to take the home view component, and remove pieces of it, specifically the Navbar. And also want to take the cart that is in the home component, and move it into the app.vue file. Now all of this is going to cause major chaos. So we'll need to go ahead and move the methods and rewire everything back together as needed until it all works beautifully. So here's where you can find the beginning version of the document. Here's the…

Contents