X Tutup
Skip to content

[beta.16 regression] ngFor + ChangeDetectionStrategy.OnPush = event handler not working #8242

@pkozlowski-opensource

Description

@pkozlowski-opensource

Steps to reproduce and a minimal demo of the problem

http://plnkr.co/edit/hDagJbhXpwI8213PmCva?p=preview

Click on a page number (1..10) and observe that a highlighted page doesn't change

Expected/desired behavior

Click on a page number (1..10) should change active page.

Other information

  • used to work in beta.15
  • observe that clicking on prev / next changes an active page
  • the only difference between page no links and prev / next links is that page no links are generated using ngFor
  • problem doesn't show up if we remove changeDetection: ChangeDetectionStrategy.OnPush,
  • switching dev / prod mode doesn't make any difference

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

      X Tutup