tag:blogger.com,1999:blog-581197352358126527.post1238611354682686872..comments2024-03-28T00:32:25.959-07:00Comments on japh(r) by Chris Strom: Redirection in Backbone.jsAnonymoushttp://www.blogger.com/profile/00135361916531185929noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-581197352358126527.post-63895650988156313362011-11-29T06:24:37.431-08:002011-11-29T06:24:37.431-08:00One thing you can try is have the empty route also...One thing you can try is have the empty route also go to the page function, and in the page function default the page to 1 (or 0, whatever the first is).<br /><br />Another thought I had, and this would need to be developed further, is to break up routers into specific domains of the app and have them accept the views they interact with in their constructor.<br /><br />So in our case, this could be the AppointmentPaginationRouter which listens to the Paginator's events.<br /><br />Then you could have a RootRouter which delegates the empty route to AppointmentPaginationRouter#page(0).<br /><br />By splitting up routers to go hand-in-hand with views, the views could avoid concerning themselves with routes and just fire methods, and the router could do both the navigation and reception of routes.<br /><br />/nickAnonymoushttps://www.blogger.com/profile/14680901673800390862noreply@blogger.com