Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue Router 4 for Everyone

The Scaffolded Codebase (Vue CLI Only)

In this lesson, we take a look at the files and directories that Vue CLI created for us. We especially zone in on the Vue Router 4 related code such as the Vue Router setup, route record registration, and the router-link and router-view components. This code was generated because we chose to include Vue Router in the project during installation.

If you already setup the project with Vite and don't want to use Vue CLI as an alternative, you can skip this lesson (suggested).

Skip to next lesson using Vite.

Links