EmilTholin / svelte-routing

A declarative Svelte routing library with SSR support
MIT License
2.02k stars 178 forks source link

Hide header conditionaly based on route? #284

Closed janusdotai closed 7 months ago

janusdotai commented 7 months ago

Greetings,

Thanks for this wonderful library.

I was wondering if its possible to hide an entire heading section if a certain route is met? How would you accomplish this... for example

/admin/*

everything under this route should get a header

/public/*

everything under this route should not see a header?

hide header

krishnaTORQUE commented 7 months ago

Not an issue. Create separate header component & attach to those pages where you want.