Closed aloksharma1 closed 5 years ago
Hi,
Looks like the error may be due to currentPage: page,
in your template, since page
does not exist in your component code. Maybe you meant p
?
thanks @michaelbromley that was exactly the case, can you explain to me where this p is coming from, in docs it was page so i put 'page' as variable in their.
Yes, in your code:
export class CityComponent {
public resdata: CampaignResort;
state: string;
city: string;
callurl: string;
http: HttpClient;
p = 1; <-------------------- HERE
total: number;
loading: boolean;
The currentPage
pipe argument refers to some property on your component. It can be named anything you like. In your case you named it p
.
Angular version: 8
ngx-pagination version: latest
Description of issue: i have configured server side pagination for my project, and its working fine the issue is with pagination numbers e.g. when i go to page 2 , pagenation list must also change active class to page which never happens.
Steps to reproduce: here is the code for my server side pagination
html component code:
Expected result: pagination active class must change after pagination is done loading new page data.