Skip to content

Router:

We use vaadin-router for our router, and have a few base classes for it (BaseRouter).

Routing in JavaScript enables dynamic page navigation and content display A router is a library that manages URL-based navigation in a single-page application (SPA).

Role of a Router:

  • Route Handling: Directs incoming URLs to the appropriate views or components.
  • View Rendering: Displays the requested content, updating the page without a full reload.
  • Navigation Control: Facilitates user-friendly back, forward, and direct navigation.

There's an advanced routing guide listed here.