-
Notifications
You must be signed in to change notification settings - Fork 244
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
Pagination component appears twice when using custom template #45
Comments
Nevermind saw that you fixed this recently |
This has now started happening again since 0.3.4 |
Hi, can you reproduce? I do not see this behaviour: http://plnkr.co/edit/vpvDEBPanuBmfvMk3JJ2?p=preview |
I discovered that it occurs during the installation id: 'xxx' in the configuration and *ngIf. |
If you put in the config default "totalItems: 1" - the second pagination disappears. But I think this is not the best solution. |
+1 I have this behaviour on RC3, but not in RC1, with custom template |
@DarkDrim Thanks for the Plunker demo. I can see that there is an I'm not exactly sure why that is, but the general issue is to do with the fact that I recently switched the component's change detection strategy to OnPush - which has massive positive performance effects, but somehow causes this issue. Not had time to upgrade and test on rc3 yet, and I will be away next week so will not be able to fix until the following week. |
Any luck with this on RC.4? |
I am working on upgrading an app to rc.4 and when done, I will upgrade this library, hopefully by tomorrow. I'll see if this is still an issue then. |
@michaelbromley There are hopes that this bug will be fixed in the near future? |
@DarkDrim Yes, I am in progress on it. I have limited time to work on this project, but I am confident there will be a new version published later this week (thursday or friday) with a fix for this. |
Should be fixed now in v0.3.5. |
Angular 2 version: 2.0.0-rc.1
ng2-pagination version: 0.3.2
Description of issue: When using a custom template on pagination, the pagination tool appears twice, one is the templated pagination and the other is the original pagination
Steps to reproduce: Add pagination with custom template
Expected result: A single templated pagination component
Actual result: 2 pagination components, 1 templated and the other default template
Demo: (if possible, edit this Plunker demo and paste the link to your fork)
Any relevant code:
The text was updated successfully, but these errors were encountered: