svelte-routing icon indicating copy to clipboard operation
svelte-routing copied to clipboard

Routing separated in different svelte coponents

Open jaclas opened this issue 3 years ago • 0 comments

I have a site built with several svelte components. The main page Start.svelte, consists of:

  • Header.svelte
  • Main.svelte
  • Footer.svelte
<Header />
<Main menuOnRight="false" />
<Footer pub_date={pubDate} version={ver} />

Main.svelte is separated into two components:

  • Menu.Svelte
  • Body.svelte
<div class="main">
    <Menu />
    <Body />
</div>

Is it possible to use routing in such a way that the <Router> contained in Menu.svelte changes the content in Body.svelte?

jaclas avatar Dec 08 '21 12:12 jaclas