
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
angular-paginator
Advanced tools
Pagination for Angular application using Bootstrap-4 template
Install via Package managers such as npm or yarn
npm install angular-paginator --save
# or
yarn add angular-paginator
Import angular-paginator
module
import { AngularPaginatorModule } from 'angular-paginator';
@NgModule({
imports: [ AngularPaginatorModule ]
})
Import bootstrap-4 into your application
Then in HTML
<div *ngFor="let item of array | angularPaginator: { currentPage: currentPage }; let i = index">
{{(currentPage - 1) * itemsPerPage + i +1}}. {{item}}
</div>
<app-angular-paginator (pageChange)="currentPage = $event"></app-angular-paginator>
angularPaginator pipe accepts
{
id: 'ANGULAR_PAGINATOR_DEFAULT',
itemsPerPage: 10,
currentPage: currentPage
}
Paginator component accepts
<app-angular-paginator [boundaryLinks]="false"
[directionLinks]="true"
maxSize="5"
[rotate]="true"
[boundaryLinkNumbers]="false"
[forceEllipses]="false"
size="sm"
id="ANGULAR_PAGINATOR_DEFAULT"
firstText="First"
previousText="Previous"
nextText="Next"
lastText="Last"
screenReaderFirstText="First"
screenReaderPreviousText="Previous"
screenReaderNextText="Next"
screenReaderLastText="Last"
screenReaderPageText="Page"
screenReaderCurrentPageText="You`re on page"
screenReaderPaginationLabel="Pagination"
className="ANGULAR_PAGINATOR_DEFAULT"
[autoHide]="false"
[disabled]="false"
(pageChange)="currentPage = $event">
</app-angular-paginator>
sm
or lg
. Check Bootstrap 4 docs for more details.Demo at stackblitz angular-paginator
Documentation is auto-generated using compodoc, and can be viewed here: https://sibiraj-s.github.io/angular-paginator/
FAQs
Pagination for Angular Applications
We found that angular-paginator demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.