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

angular-ultimate-pagination

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-ultimate-pagination

## Installation

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

angular-ultimate-pagination

Installation

To install this library, run:

$ npm install angular-ultimate-pagination --save

Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

$ npm install angular-ultimate-pagination

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
// Import UltimatePaginationModule
import { UltimatePaginationModule } from 'angular-ultimate-pagination';

import { AppComponent } from './app.component';

// Implement component's per each pagination item type
import { PaginationItemPageComponent } from './pagination-item-page/pagination-item-page.component';
import { PaginationItemEllipsisComponent } from './pagination-item-ellipsis/pagination-item-ellipsis.component';
import { PaginationItemFirstPageComponent } from './pagination-item-first-page/pagination-item-first-page.component';
import { PaginationItemPreviousPageComponent } from './pagination-item-previous-page/pagination-item-previous-page.component';
import { PaginationItemNextPageComponent } from './pagination-item-next-page/pagination-item-next-page.component';
import { PaginationItemLastPageComponent } from './pagination-item-last-page/pagination-item-last-page.component';

@NgModule({
  declarations: [
    AppComponent,
    PaginationItemPageComponent,
    PaginationItemEllipsisComponent,
    PaginationItemFirstPageComponent,
    PaginationItemPreviousPageComponent,
    PaginationItemNextPageComponent,
    PaginationItemLastPageComponent
  ],
  imports: [
    BrowserModule,

    // Add UltimatePaginationModule to AppModule's imports and provide theme by specifying components per item type
    UltimatePaginationModule.withTheme({
      PAGE: PaginationItemPageComponent,
      ELLIPSIS: PaginationItemEllipsisComponent,
      FIRST_PAGE_LINK: PaginationItemFirstPageComponent,
      PREVIOUS_PAGE_LINK: PaginationItemPreviousPageComponent,
      NEXT_PAGE_LINK: PaginationItemNextPageComponent,
      LAST_PAGE_LINK: PaginationItemLastPageComponent
    })
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once UltimatePaginationModule is imported you can use pagination component:

<ultimate-pagination
    [(currentPage)]="currentPage"
    [totalPages]="totalPages"
    [boundaryPagesRange]="boundaryPagesRange"
    [siblingPagesRange]="siblingPagesRange"
    [hidePreviousAndNextPageLinks]="hidePreviousAndNextPageLinks"
    [hideFirstAndLastPageLinks]="hideFirstAndLastPageLinks"
    [hideEllipsis]="hideEllipsis"
></ultimate-pagination>

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Dmytro Yarmak

Keywords

FAQs

Package last updated on 02 Jun 2017

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