Skip to content

inputBinding doesn't mark OnPush components for check #62343

Closed

Description

@ajafff

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

Using inputBinding to bind to an old-style @Input() property of an OnPush component doesn't mark the component for check and therefore never updates the template of that component.

The input property's value is set correctly and ngOnChanges is called as expected.

If I use ChangeDetectionStrategy.Default or input signals, the template is updated as expected. But in my case I am dealing with components I cannot change so easily. I'm trying to migrate from ComponentRef#setInput and ng-dynamic-component to the new API.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/yssynzjl?file=src%2Fmain.ts

Please provide the exception or error you saw

OnPush component doesn't run change detection on input change.

Please provide the environment you discovered this bug in (run ng version)

Angular 20.0.5

Anything else?

No response

Activity

  1. added
    area: core
    on Jun 27, 2025
  2. added this to the needsTriage milestone on Jun 27, 2025
  3. ajafff commented on Jul 17, 2025

    @ajafff
    Author

    fixed by #62613 in v20.1.1

  4. angular-automatic-lock-bot commented on Aug 17, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: core

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions