07_02 Refactoring Navigation
Refactoring Navigation
Next, we'll start tackling the reorganization of our application, sometimes known as refactoring.
Practice
- Remove
CustomAlert.vue
Home.vue
nav toNavbar.vue
- Move
:cart
toApp.vue
- Move methods, rewire as needed
In order to take care of this, first we'll do some housekeeping and remove the alert.
Then we'll take out the navigation from the home.vue component and move it to it's own spot.
I also want to remove the cart so that it's accessible by the homepage as well as the navigation, so we'll need to move it from the home page to App.vue.