svelte-routing
svelte-routing copied to clipboard
Expose let:location in router
This allows users to access the location in the Router component not under a Route, e.g, navigation components
<Router let:location>
<Navigation location={location} />
<Route path='foo'>
...
</Router>
@EmilTholin Any plans to merge this? Would be extremely useful to be able to implement features like active navlink styling.
Hi I forked svelte-routing > https://github.com/krishnaTORQUE/svelte-routing-next. And I merged your PR there. Please let me know if you have any query. Thanks.
MERGED View Changelog: https://github.com/EmilTholin/svelte-routing/blob/master/CHANGELOG.md