A router for Svelte.js
npm install @svel/router> This is svelte-router which works only with svelte 3.0.
svelte-router is a router for svelte.js. It was forked from vue-router.And has the similar APIs and features:
- Nested route/view mapping
- Modular, component-based router configuration
- Route params, query, wildcards
- View transition effects powered by svelte.js' transition system
- Fine-grained navigation control (in-component-guards is not support now)
- Links with automatic active CSS classes
- HTML5 history mode or hash mode, with auto-fallback in IE9
- Customizable Scroll Behavior
Get started with the vue-router documentation, or play with the examples (see how to run them below).
``bash`
npm i @svel/router$3
`html
Svelte Router
`
` bashinstall deps
npm install
Releasing
-
npm run release
- Ensure tests are passing npm test
- Build dist files VERSION=
- Build changelog npm run changelod
- Commit dist files git add dist CHANGELOG.md && git commit -m "[build $VERSION]"
- Publish a new version npm version $VERSION --message "[release] $VERSION"git push origin refs/tags/v$VERSION && git pushnpm publishPlease make sure to read the Contributing Guide before making a pull request.
Details changes for each release are documented in the release notes.
Copyright (c) 2013-present Evan You