Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Releases: mlowen/knockout-singlepage

0.3.3

31 May 10:39
Compare
Choose a tag to compare

Bug Fixes

  • #26 Router is not invoked if a tag has child elements

0.3.2

25 May 09:36
Compare
Choose a tag to compare

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 before init has been.
  • Updated the documentation to include documentation about the url method.

0.3.1

21 May 04:06
Compare
Choose a tag to compare

Bug fixes

  • Fixed an issue where - and _ characters in a parameter were causing a 404.

0.3.0

19 Feb 10:13
Compare
Choose a tag to compare

New functionality

  • Added the url method for formatting a route to a URL.
  • Added the url binding which wraps around the url 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

07 Jan 08:59
Compare
Choose a tag to compare

Bug Fixes

  • While the data-bind attribute was applied to the element specified when loading Knockout-SinglePage the scope that knockout was bound at was always the body element. This has been modified to be the element passed to the init method.

0.2.0

01 Jan 10:20
Compare
Choose a tag to compare

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

31 May 03:36
Compare
Choose a tag to compare
0.1.0-alpha Pre-release
Pre-release

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.