Vue Router

Vue Router is Vue's official routing library. It maps URLs to components, handles navigation without page reloads and the browser history. You define routes in an array, display the view with <RouterView> and navigate with <RouterLink>.

Example

const routes = [{ path: '/', component: Accueil }]

Related concepts

The whole glossary