This repository has been archived by the owner on Feb 15, 2021. It is now read-only.
Releases: mlowen/knockout-singlepage
Releases · mlowen/knockout-singlepage
0.3.3
0.3.2
New Functionality
- Added the
initialised
method to test if Knockout-SinglePage has been initialised.
Bug Fixes
- Updated the
url
method to throw the not initialised exception if it is invoked beforeinit
has been. - Updated the documentation to include documentation about the
url
method.
0.3.1
0.3.0
New functionality
- Added the
url
method for formatting a route to a URL. - Added the
url
binding which wraps around theurl
method. - Multiple routes can now use the same component.
- Added hook functionality to be able to override default behavior when loading a route.
Changes
- Refactored from coffescript to javascript.
- Ported build system from grunt to gulp.
0.2.1
0.2.0
New functionality
- Update URL without routing to new component.
- Added
data-route
attribute. - Emit an event when route changes.
- Expose the element that is bound via property.
- Accept an object as the argument for the
init
method.
Changes
- Updated dependencies.
- Demos load knockout from CDN.
- Library published to NPM.
Bug Fixes
- #6 Links with
click
bindings trigger routing. - #7 Non-existing routes not handled gracefully.
- #10 Middle click doesn't open a new tab.
- Respect browser navigation.
0.1.0-alpha
New
- Uses the browser history API to update the URL without navigating to a new page.
- Leverages Knockout components to load the appropriate view and view model into the DOM.
- Routing based on URL.
- Extracts route parameters, values from the query string, and the URL hash and provides it to the view model.