pagerjs - creating single page applications in a declarative fashion

added by JavaScript Kicks
12/10/2014 12:43:59 PM

351 Views

pager.js is a JavaScript library based on KnockoutJS and jQuery that provides the possibility of creating single page applications in a declarative fashion - nesting subpages inside subpages where each subpage can be developed standalone but still communicate between each other. This makes it easier to design very large scale single page web sites.


2 comments

Drew Peterson
12/10/2014 6:17:15 PM
I like this, it's sort of an alternative to Durandal, if you were looking for that sort of thing. After looking through the documentation, there isn't a lot that's missing compared to Durandal, it just does things differently (not central router to set up, etc). As someone who enjoys Durandal, what are your thoughts on this @graham_kane @RobertTheGrey?

Robert Greyling
12/10/2014 9:38:44 PM
I'm not sure I can give a decent opinion yet on this for two reasons: 1. I haven't checked it out in depth yet 2. It looks pretty young and probably needs to be battletested before one can say it's ready for the big time On the surface it looks pretty decent, but doesn't give you anything special from what I can see to pursuade you to use it. Durandal for example (since you asked) provides a view composition model that is second to none, and I'm guessing that pagerjs will be leaning heavily on Knockout Components in v3.0 to come close to the same idea - but will still be lacking IMO because it's not as declarative as the way Durandal does it. Also, just looking at routing, there doesn't seem to be a way to use pushState instead of hashbang routing, and that's something I personally can't stand - it would be a total non-starter for me. Having said that, it will likely come soon - as I said it's a young one, and has a ways to go yet before it can compete. If I were them though, I'd be taking a serious look at ES6 and making sure they are future proofing themselves for those patterns of coding.