Skip to content

Use Vue Router

  • Deciders: David Bauer, Julian Bäume
  • Date: 2024-12-06

Status

WIP

Context

After deciding to use Vue.js as our framework, we need a routing solution to handle navigation between different views in our application. Vue Router is the official router for Vue.js applications and integrates seamlessly with the Vue ecosystem.

Decision

We will use Vue Router as our routing solution for the following reasons:

  1. Official Integration - Vue Router is the official routing solution for Vue.js applications
  2. Deep Vue.js Integration - Provides features like route guards, navigation hooks, and lazy loading
  3. Declarative Routing - Allows us to map components to routes in a clear, maintainable way
  4. TypeScript Support - Offers good TypeScript support which aligns with our development practices
  5. Component-Based Architecture - Fits well with our Vue.js component structure

Consequences

  • This fundamentally changes how routing is handled in App Suite

Positive

  • Consistent routing pattern across the application
  • Built-in support for lazy loading components
  • Easy integration with Vue.js components
  • Strong community support and documentation

Negative

  • Team members need to learn Vue Router concepts