07_02 Refactoring Navigation

Refactoring Navigation

Next, we'll start tackling the reorganization of our application, sometimes known as refactoring.


Practice

  1. Remove CustomAlert.vue
  2. Home.vue nav to Navbar.vue
  3. Move :cart to App.vue
  4. 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.