Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-pagination

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-pagination

The simplest solution for pagination in Angular.

  • 6.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
104K
decreased by-16.36%
Maintainers
1
Weekly downloads
 
Created

What is ngx-pagination?

ngx-pagination is an Angular library that provides a simple and flexible way to add pagination to your Angular applications. It is easy to integrate and customize, making it a popular choice for handling paginated data in Angular projects.

What are ngx-pagination's main functionalities?

Basic Pagination

This feature allows you to add basic pagination controls to your Angular application. The `pageChange` event is emitted whenever the page is changed, and you can handle it in your component.

<pagination-controls (pageChange)="pageChanged($event)"></pagination-controls>

Server-Side Pagination

This feature demonstrates how to implement server-side pagination using ngx-pagination. You can fetch data from a server based on the current page and page size, and update your component accordingly.

this.http.get(`https://api.example.com/items?page=${this.currentPage}&size=${this.pageSize}`).subscribe(data => { this.items = data.items; this.totalItems = data.totalItems; });

Custom Template

This feature allows you to customize the pagination controls using an Angular template. You can define your own template for the pagination controls to match your application's design.

<pagination-controls (pageChange)="pageChanged($event)"><ng-template let-page="page">Page {{ page }}</ng-template></pagination-controls>

Other packages similar to ngx-pagination

Keywords

FAQs

Package last updated on 21 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc