Chapter 3. Navigation with Vue Router
A single page application is just that; a single page. Navigating between “pages” is not really possible in the traditional sense; you cannot just link to another page. Instead, you are linking to a route, which then loads (or mounts) a set of components that you define and renders them to the view in your browser.
In order to achieve this, a JavaScript library is needed to load the components that you defined per that route. The Vue Core Team has created an official routing library called, “Vue Router” that is automatically installed (if selected during setup) when working on a Vue CLI project. Other frameworks have their “own” libraries, but what makes Vue Router so special is that it is indeed developed and maintained by the Core Team. When Vue gets updated, there’s a good chance that Vue Router will as well. This means that Vue Router is guaranteed to work with all versions new or old of Vue.js...