One of the main parts of your application is router management. Here, it is possible to bring together infinite component combinations in a single place.
A router is capable of coordinating component rendering and dictating where the application should be, depending on the URL. There are many ways to increase the customization of vue-router. You can add route guards to check whether specific routes are navigatable by access level or fetch data before entering the route to manage errors on your application.
In this chapter, you will learn how to create application routes, dynamic routes, alias and credited routes, and nested router views. We'll also look at how to manage errors, create router guards, and lazy load your pages.
In this chapter, we'll cover the following recipes:
- Creating a simple route
- Creating a programmatic navigation ...