Questions tagged [ngx-pagination]

ngx-pagination is a library in AngularJs which provides the property to do pagination. It calculates how many pages to be displayed for user to select from based on current page, page size and total items.

79 questions
1
vote
1 answer

Argument of type 'xyz[ ] | null ' is not assignable to parameter of type 'Collection'

I'm writing a scenario where I get all the blogposts related to a certain category and I'm handling them using pagination by using ngx-Pagination. But when I reload the browser the posts does not remain on the page and all the posts are lost. And to…
M Nouman
  • 437
  • 1
  • 5
  • 22
1
vote
2 answers

ngx pagination for Observable array

when ı use ngx pagination for item : Array< any> = [] there is no problem but when use for items: Observable ı am getting an error : Error: src/app/home-page/home-page.component.html:18:36 - error TS2345: Argument of type 'any[] | null' is…
zafer
  • 407
  • 1
  • 4
  • 16
1
vote
0 answers

Search Filter Pipe is not working using ngx-pagination after click 2nd pagination number in angular 13

This is search filter directives import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'filter' }) export class FilterPipe implements PipeTransform { transform(items: any[], searchText: string): any[] { if (!items) return []; …
bilu sau
  • 41
  • 1
  • 8
1
vote
0 answers

Ngx-pagination not working after a click event in dialog box due to event bubbling

Currently i'm working on pagination and showing agm-maps in a project. The problem is that the ngx-pagination is not working if i click the icon with a click event attached to it. don't know where i'm going wrong as i'm new to Angular can somebody…
1
vote
0 answers

how to show custom results in ngx-pagination and ngx-datatable pages

i'm having a problem at hand like this. I have records up to 10 in my JSON output but the client wants to show 32 records like 10 in each page. until, the fourth page and wants the 4th page to show just two records to make up a total record of 32…
1
vote
1 answer

How to add pagination in angular project using ngx-pagination and show it's status

How to do a pagination status in an angular project like this (dynamically) I use ngx-pagination project
sHaRjAs
  • 153
  • 1
  • 3
  • 15
1
vote
1 answer

Page number automatically resets 1 after switching pages with angular

I don't know why pageNumber in bookParams auto reset to 1 after I changed the page from 1 to 2. export class BookListComponent implements OnInit { books: Book[]; bookParams: BookParams; pagination: Pagination; constructor(private…
Tunggg
  • 61
  • 4
1
vote
4 answers

ngFor index reset to 0 when used with ngx-pagination