Skip to content

Releases: akhilarjun/RouteNow

Added new routing strategy - using HTML5 History API

16 Jul 18:54
ecde3e2

Choose a tag to compare

Added support for the HTML5 History API.

  • Made the history API routing strategy as the default routing mechanism
  • Added a new flag in the options object to support legacy hash routing strategy called useHashStrategy
  • useHashStrategy will be set to false by default
  • If using the new routing strategy it is important to add a wildcard entry in the server configuration to route all traffic to your index.html

The major version bump is to help the users identify the significance of routing strategy change.

Added $Router.hash() method

04 Jul 08:53

Choose a tag to compare

Added a $Router.hash() method that accepts an hash path.
This method should be used to elegantly change routes in browser url and navigate between different routes in a programmatic way.

The method also throws an error if valid hash path is not provided to it.
And will re-route to a default path if it is provided in config via otherwise path

Example

$Router.hash('home');
$Router.hash('#home'); // providing '#' before hash path is also acceptable

Bug Fix: Wrapped modules.export in an if block to support client side

30 Jun 18:31

Choose a tag to compare

modules.export was causing the code to break in browsers. So added an if block to prevent it from accidentally firing.

Common Module Export Support

30 Jun 18:14

Choose a tag to compare

  1. Added a common module export support.
  2. Removed the self invocation function model

Initial Release

26 Jun 08:42

Choose a tag to compare

This is a stable build. The js folder has both minified and non-minified versions of the library