vendredi 23 juin 2017

switching between the page in not working in pagination

I have used ember-cli-pagination for adding pagination in my ember app. Pagination is added to the ui but in number it is changing the page number but in ui it is not displayed.

in my controllers i have added:

 queryParams: ["page", "perPage"],
  page: 1,
  perPage: 3,
  pagedContent: pagedArray('content', {
    page: Ember.computed.alias("parent.page"),
    perPage: Ember.computed.alias("parent.perPage"),
  }),
  totalPages: Ember.computed.oneWay("pagedContent.totalPages"),

in router i have added>>

model:function(){
    return this.store.findAll('rule');   
  },

how to switch between the pages>>>




Aucun commentaire:

Enregistrer un commentaire