v0.3.0
Pre-release
Pre-release
New Features
- Nested components: allow reusing a common parent layout as a wrapper, having a
<slot>
tags to render the child components into, as a light DOM children - Animated transitions: support the
animate
property on the route config, and setting the CSS classes to trigger the@keyframes
animation when switching between different routes - Added
onAfterLeave
lifecycle callback, allowing to execute some logic right before the route component is disconnected from the DOM, without being able to cancel it - Added the
Router.go()
method, allowing to trigger navigation programmatically - Added
vaadin-router-route-changed
andvaadin-router-error
events
Bug Fixes
- Fixed the silent failure issue when Router is initialised but not configured
- Fixed the redirect issue, previously it was not possible to go back when coming from external URL
- Fixed the missing source maps for the minified UMD bundle
Changes Since v0.2.1:
- 0f266df Use dash in router event names (#188)
- 14d3c15 Add an informative error message when router is used unconfigured (#184)
- ac32a4c Use history.replaceState when redirecting (#186)
- 24215a0 Add navigation JavaScript API (#180)
- 5b2f470 Fix the missing source maps for the minified UMD bundle (#181)
- 3e39c4e Add animated transitions (#164)
- 5cc1fe0 Support 'onAfterLeave' callback. (#174)
- e2da568 Demo and docs improvements based on feedback (#170)
- 9546fbb Support parent layouts (#169)
- bf4386b Improve lifecycle callbacks demos (#167)