Summary
In this chapter, we have learned about vue-router, the first external package that is part of the Vue core set of libraries to be covered in the book. The chapter introduced us to the package by covering its configuration and settings such as history mode. We then learned about the usage of routes, how to define them, and how to navigate to them.
After learning the basics of vue-router, we moved on to more advanced topics such as dynamic routes and nested routes.,
Lastly, we learned about alias
and redirect
to complete our basic understanding of the router and how to use it to build both simple and complex applications.
In the next chapter, we are going to learn about another core package of the Vue ecosystem: Pinia. This package is used to define and share state across our application.