ItalyPaleAle/svelte-spa-router

Having a router inside of another router

joshnwosu opened this issue · 2 comments

How can I achieve this?

{
		path: "/",
		component: Music,
		children: [
			{
				path: "/",
				component: Songs,
			},
			{
				path: "/artists",
				component: Artists,
			},
			{
				path: "/albums",
				component: Albums,
			},
		],
	},
	{
		path: "/about",
		component: About,
       },
}

Hi, what you want to achieve is a nested route; is that correct?
You can find it in the doc here under Nested routers chapter :)

Hi, what you want to achieve is a nested route; is that correct? You can find it in the doc here under Nested routers chapter :)

Exactly what I was looking for. Thanks a ton!