Dynamic routing

Demo for the dynamic() function.

The following routes are defined in this page (see source) matched dynamically:

let routes: Array<DynamicRoute> = [
];
<svelte:component this={dynamic($path, routes, Error)} />

Try clicking on them and you'll see the rendered route changing below:

Renderized dynamic component:

Dynamic RegExp: /dynamic/re141

  • This route is dynamic
  • Matched at path: /dynamic/re141
  • Defined as: {/dynamic\/re[0-9]+/}
  • Value ($match[1]): undefined