ng-table icon indicating copy to clipboard operation
ng-table copied to clipboard

Show items 1 by 1

Open joanxtb opened this issue 12 years ago • 2 comments

My use case is this: I want to show the items of a list 1 by 1. Using pagination to scroll through them. You would say hey! no problem, just set ngTableParams like :

new ngTableParams({ page: 1, count: 1 }

But when I do this, it stops working at all. Is like count = 1 destroys everything. If I put count = 2 (for instance),it works fine, excepts that it show 2 elements instead of 1. And even if I force the resolve(data) to contains only 1 item, the pagination is screwed...

lets say I have 4 items total... then the pagination would show only 1 and 2, because of that count = 2...

joanxtb avatar Aug 06 '14 16:08 joanxtb

I don't have a solution yet, but I am experiencing the same thing. When page: 1, count:1 is used, it does not display anything.

I have filters showing and when I type something in the filters it then refreshes and shows the items 1 at a time. It seems there is an issue with refreshing the $data model, I think.

realityfluxstudios avatar Sep 05 '14 10:09 realityfluxstudios

Experiencing this as well, using page: 1, count: 1 seems to cause the getData method not to be called.

grrtbrtr avatar Nov 05 '14 10:11 grrtbrtr