Skip to main content

getPage()

returns the index of the active page

getPage(): number;

Returns:

A number with the index of the active page.

Example

const pageIndex = pagination.getPage();// -> 3