Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4837

Route, query params and mixin

$
0
0

@Yaroslav_Poliakov wrote:

Hello, guys! I have implemented pagination on search results through query param, computed properties and mixin (it used in two places). It works almost perfect. Just one problem:

  1. User goes to first page of results (from zero page)
  2. User goes to another route
  3. User goes back to results (and ZERO page of results showed in spite of query param: pageNumber=1)

And even if I load page manually with query param: pageNumber=X, it always shows zero page.

But! On another route (with same mixin) all works fine.

Route with problem: https://github.com/drinkit/ember-client/blob/master/app/routes/builder.js & https://github.com/drinkit/ember-client/blob/master/app/controllers/builder.js

Mixin: https://github.com/drinkit/ember-client/blob/master/app/mixins/pagination.js

Route without problem: https://github.com/drinkit/ember-client/blob/master/app/routes/recipes.js & https://github.com/drinkit/ember-client/blob/master/app/controllers/recipes.js

I will be very appretiate if someone helps me with this because I stuck.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4837

Trending Articles