Skip to content

Paginator doesn't update visually when changing properties by code #5904

@michelcve

Description

@michelcve

Bug, feature request, or proposal:

Paginator doesn't update visually when changing by code (e.g. setting length).

What is the expected behavior?

Visually the paginator should update when we change one of the properties by code.

What is the current behavior?

When changing the length property for example, internally the paginator does change it's values. However, visually the component is not updated (old length remains on screen)

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U

http://plnkr.co/M4tqI5WjV01fvzzNGkit

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

I'm using the paginator with a data table, which has it's data loaded asychronously. Only when the response is in, I'll know how many records are available, so I want to update the 'length' property of the paginator at that point through code.

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

Most recent in plnkr.

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions