Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

pagination module initializes ngModel to 1 if total-items starts out undefined #2956

@AlJohri

Description

@AlJohri

I'm grabbing metadata from an API where I know which page I would like to grab via the url parameters, but the total-items takes a few milliseconds to populate.

Because total-items starts out undefined, ngModel is changed from the correct page number to 1.

The only way I have gotten around this is to initialize total-items to an arbitrary number such as 1000. Then the page number is left alone.

Is there a better solution?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions