Quantcast
Viewing all articles
Browse latest Browse all 4826

Ember cli pagination not changing the display content

@alice wrote:

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--
{{#each pagedContent as |rule index|}}

{{rule.Name}}

{{/each}}


{{page-numbers content=pagedContent}}

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?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles