Pagination for Angular
Introduction
Section titled “Introduction”Page navigation for paged data: a labelled <nav> of native buttons (previous/next, optional first/last, page numbers with ellipses), an optional localized result summary, an optional rows-per-page <select>, polite announcements after page changes, and a compact ‘Page 3 of 10’ layout in narrow containers.
- Page or total basedGive a page count, or a total and page size, and the pages are worked out.
- Page size choiceAn optional page size list lets users pick how many rows they see.
- Compact page listSibling and boundary counts control which page numbers show around gaps.
- Readable summaryA localized summary such as the shown range of the total, announced politely.
Behavior, design tokens, and limitations are described on the Pagination page; this page covers the Angular API.
Live example
Section titled “Live example”import { Component } from '@angular/core';import { AuiPagination } from '@absoluteui/angular/pagination';
@Component({ selector: 'app-orders-pager', imports: [AuiPagination], template: `<aui-pagination [total]="total" [pageSize]="pageSize" [pageSizes]="[25, 50, 100]" [page]="page" (changed)="onPage($event.page, $event.pageSize)"></aui-pagination>`,})export class OrdersPagerComponent { total = 240; page = 1; pageSize = 25; onPage(page: number, pageSize: number | null): void { this.page = page; if (pageSize !== null) this.pageSize = pageSize; }}Install and start
Section titled “Install and start”npm install @absoluteui/angular @absoluteui/components @absoluteui/core @absoluteui/themeSetup with provideAbsoluteUI() is covered in Getting started. Styles are included with the component.
import { AuiPagination } from '@absoluteui/angular/pagination';Defaults for every instance: provideAbsoluteUIConfig({ components: { pagination: { ... } } }) (see Configuration).
API reference
Section titled “API reference”<aui-pagination>
Section titled “<aui-pagination>”Class AuiPagination; template reference #ref="auiPagination".
Server rendering: Renders on the server; the browser re-creates it after hydration.
Inputs
Section titled “Inputs”| Input | Type | Default | Description |
|---|---|---|---|
pageCount |
number |
Number of pages. Provide either pageCount or total. | |
total |
number |
Total items; the page count is derived from pageSize. Enables the summary. | |
pageSizes |
readonly number[] |
Render a native ‘Rows per page’ select with these sizes. | |
label |
string |
'Pagination (localized)' |
Accessible name of the <nav>. |
icons |
Partial<PaginationIcons> |
Icon slot overrides. | |
siblingCount |
number |
'1' |
Pages shown on each side of the current page (0 to 10). |
boundaryCount |
number |
'1' |
Pages always shown at the start and end (0 to 10). |
showFirstLast |
boolean |
false |
Render first/last page buttons. |
showSummary |
boolean |
true |
Show ‘Showing 11-20 of 57’ when total is known. |
locale |
string |
'en-US' |
Message and number-formatting locale. |
direction |
Direction |
'ltr' |
rtl mirrors the direction icons. |
Two-way bindings
Section titled “Two-way bindings”| Model | Type | Change output | Description |
|---|---|---|---|
[(page)] |
number |
(pageChange) |
Current page, 1-based; clamped to 1..pageCount. |
[(pageSize)] |
number |
(pageSizeChange) |
Items per page. Required with total unless pageSizes is set (then defaults to its first entry). |
Outputs
Section titled “Outputs”| Output | Payload | Description |
|---|---|---|
(changed) |
PaginationChangeDetail |
The user changed the page or the page size. Re-emits aui-change. |
Methods
Section titled “Methods”Call them through a viewChild query or a template reference.
| Method | Description |
|---|---|
setPage(page: number): void |
Go to a page programmatically (clamped; no events, no announcement). |
Test harness
Section titled “Test harness”AuiPaginationHarness from @absoluteui/angular/testing. <aui-pagination>.
Accessibility and performance
Section titled “Accessibility and performance”Pattern: Navigation landmark of native buttons (no dedicated APG pattern), following common accessible pagination practice: named buttons, aria-current on the current page, disabled bounds, and announced changes.
The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Pagination: Accessibility and performance.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.