Svelte Router
Router component for Svelte
This branch is for Svelte v3.0.0+. For usage with Svelte v1.8.0+, see the v2 branch. For usage with Svelte v1.8.0-, see the 0.1.x branch.
Installation
Using npm:
npm install --save svelte-router
Using yarn:
yarn add svelte-router
Examples
Home Welcome
API
SvelteRouter
push(path: string)
replace(path: string)
go(n: number)
goBack()
goForward()
listen(fn: function)
Link
to
: stringreplace
: booleanclassName
: stringactiveClassName
: string