ember.js - Controller action that changes a param, reloads the model, and rerenders? -
say have following route:
this.resource('storybox', { path: "story_box/:category_id/:page" })
in route:
app.storyboxroute = ember.route.extend({ model: function(params) { return app.story.find({"sid": parseint(params.category_id), page: parseint(params.page), count: 8}) })
so, works great if access via url valid resource:
http://myserver/#/story_box/<validid>/<page
but can't figure out life of me how generate linkto helpers allow accessing next/pervious page, linkto helper expects model. supposed build urls property? seems ugly hack.
Comments
Post a Comment