lundi 26 juin 2017

Ember cli pagination not changing the display content

I am using ember cli pagination for local store in my ember app. i have successfully created pagination area with proper page number but the display content is not changing with the page number. here is my code---

in my hbs--



 






in controllers--->

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"),

how to change the display data with the page number?




Aucun commentaire:

Enregistrer un commentaire