Alex Rivera | Logout

Preferred client side routing solution?

Asked 2011-06-11T11:00:36.197
50

I am designing a one page browser based web application.

JQuery is already being used in my application. I am currently planning to use KnockoutJS for data-binding and UI management. However I have used Backbone.js in past, and I have been quite impressed with the routing facilities provided by the controller layer.

I have also looked into some JQuery-based solution like pathjs for client side routing.

It would be great if someone could offer suggestions and guidelines for choosing a proper routing system.

I am not willing to use Backbone.js instead of KnockoutJS because of the excellent data-binding facilities of KnockoutJS.

Edit
Report

1 Answer

4

Crossroads.js seems to be one of the best around. One major advantage of it being, it doesn't rely on window.location for routing. It's lightweight as it sticks to do just routing and routing alone.

Others you may want to try: finch.js, davisjs (based on pushState so that you can use existing links as a fallback if JS fails)

Appending an update: March 30 2015 - I had moved to AngularJS late last year. Hands-down the best switch form JQ, has a lot of modules like routing in-built.

answered 2012-09-27T20:17:04.967

Your Answer