-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step 13: Pagination doesn’t work #208
Comments
I have exactly the same problem currently:
I think I'm a few steps ahead, and possibly have some issues with the later errors, but for the most part the same thing. Is it, by chance, the accounts module is incorrect? EDIT Looks like the issue is discussed here, but I still can't solve it. |
It helps replacing the pagination configuration object with a
and then replace Add the id also to your That takes me so far that the pagination controls are properly displayed and react to my clicks to display the correct page, but only for an instance, until it is replaced by the first page again. |
How are you adding the id to the property? |
My apologies, I meant "how are you adding the id to the element?" Can you give an example? |
Do you mean just this:
or the See https://gist.github.com/fiee/84ff01a5a60a1d80aca15c650dff17ec |
I changed this.paginationService.defaultId to this.paginationService.defaultId() in the tutorial (client/imports/app/parties/parties-list.component.ts) and now it's working. |
Except some template changes, my code is the same as in your download. Clicking on pagination links does nothing. There are no errors on JS console, but meteor says:
The lines are:
57:
this.paginationService.setCurrentPage(this.paginationService.defaultId, curPage as number);
78:
this.paginationService.register({ id: this.paginationService.defaultId, itemsPerPage: 10, currentPage: 1, totalItems: this.partiesSize });
92:
this.paginationService.setTotalItems(this.paginationService.defaultId, this.partiesSize);
What can I do?
The text was updated successfully, but these errors were encountered: