Search⌘ K
AI Features

Routes

Explore the core concepts of routing in Vue 3 to make your Single Page Applications behave like traditional server-side apps. Learn how to define static and dynamic routes, utilize route parameters, and implement navigation guards to control access and navigation flow within your app. Understand how client-side routing supports user navigation and bookmarking, enhancing the overall user experience.

Introduction to routes

Using a client-side router will give our SPAs the advantages of a server-side web appA server-side web app processes and generates content on the server before sending it to the user's browser.—namely, the ability to use the browser’s back and forward buttons to move through our app’s screens and the ability for the user to bookmark specific screens and/or states of our app.

Vue has the advantage of having a library that’s not only extremely capable and well documented but is also the official routing solution for Vue and is guaranteed to be maintained and kept in sync with the development of the core library.

...