Routing

Overview

Velzon Svelte has routing based on folders.

You can find our template's router configuration in src/Layouts folder. The src/Layouts/LayoutMenuData.js file which contains all routes in json.

How to add new route ?

You can easily add, change or remove any route by simply making changes described below:

1. Open src/routes/ folder, in which create file with +page.svelte name.

 +page.svelte

2. If you want inner route then create src/routes/folder_name/ folder, & create file with +page.svelte in it.

src/routes/folder_name/+page.svelte

Add route json in src/Layouts/LayoutMenuData.js file like below:

{
    id: 'widgets',
    label: 'Widgets',
    icon: 'ri-honour-line',
    link: '/Widgets',
},
Note : you don't need to restart the development server in order to see the menu changes getting in effect
© Velzon.
Design & Develop by Themesbrand