Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@99xt/ngx-pagination
Advanced tools
Readme
Simple pagination component for angular2+ apps.
To install this library, run:
npm install @99xt/ngx-pagination --save
example.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ExampleComponent } from './example.component';
// Import the library
import { PaginationModule } from '@99xt/ngx-pagination';
@NgModule({
declarations: [
ExampleComponent
],
imports: [
BrowserModule,
PaginationModule
],
providers: [],
bootstrap: [ ExampleComponent ]
})
export class ExampleModule { }
example.component.ts
export class ExampleComponent {
totalRecordCount: number;
selectedPage: number;
recordsPerPage: number;
constructor() {
this.totalRecordCount = 330;
this.recordsPerPage = 10;
this.selectedPage = 1;
}
selectPage(page: number) {
this.selectedPage = page;
// call your page contents loading method here
}
}
example.component.html
<pagination
[total]="totalRecordCount"
[limit]="recordsPerPage"
(onSelectPage)="selectPage($event)">
</pagination>
Clone the repository to your workstation
git clone git@github.com:99xt/ngx-pagination.git
Navigate to the project directory
cd ngx-pagination
Install and build the library
Generate all
*.js
,*.d.ts
files
npm install
npm run build
You can find the compiled version in the dist/
Create a symlink from the dist
directory to the global node_modules
cd dist
npm link
To lint all *.ts
files:
$ npm run lint
cd demo
npm install
npm start
Update the version in src/package.json
;
npm run build
npm publish dist
MIT
FAQs
Simple pagination for angular2+ apps
The npm package @99xt/ngx-pagination receives a total of 6 weekly downloads. As such, @99xt/ngx-pagination popularity was classified as not popular.
We found that @99xt/ngx-pagination demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.