Skip to content

[Pagination] Example passes string for pageSize, breaking getRangeLabel #8624

@tom10271

Description

@tom10271

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When I set page size to 1 then go to next page, it should changes from 1 - 1 of 100 to 2 - 2 of 100. Then next page again it should be 3-3 of 100

When I set page size to 2 then go to next page, it should changes from 1 - 2 of 100 to 3 - 4 of 100. Then next page again it should be 5-6 of 100

What is the current behavior?

angular material io pagination of data table bug

When I set page size to 1 then go to next page, it changes from 1 - 1 of 100 to 2 - 20 of 100. Then next page again it should be 3-30 of 100

When I set page size to 2 then go to next page, it changes from 1 - 2 of 100 to 3 - 22 of 100. Then next page again it should be 5-42 of 100

What are the steps to reproduce?

https://material.angular.io/components/paginator/examples

What is the use-case or motivation for changing an existing behavior?

I am just trying to test it for the first time

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 5.0.3
Angular Material 5.0.0-rc.1

Is there anything else we should know?

Plunkr example is not working too(In most of the time for other examples too actually)
angular/material.angular.io#334

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions