Setting up and installing Vue Router
In the last video, we refactored our app so our existing page content and functionality belongs to a "page component" named
In this video, we're going to set up Vue Router to manage our views.
Adding Vue Router plugin
Let's begin by adding Vue Router to the project. It can, of course, be added as a Vue CLI plugin (with the simple command
vue add router) but in this course we're going to add it manually so we know how to set up the router from scratch.