Skip to content

Include the expression in the ExpressionChangedAfterItHasBeenCheckedError #50272

@FiretronP75

Description

@FiretronP75

Which @angular/* package(s) are relevant/related to the feature request?

No response

Description

When ExpressionChangedAfterItHasBeenCheckedError is thrown, it logs the previous value and the current value and a stack trace. However, it is difficult to see in the stack trace which component is causing the error.

Proposed solution

Add the expression that threw the error into the message. This will make it clear at a glance where the problem is.

Alternatives considered

Add the template file that threw the error (can get this from the stack trace) into the message. This will show you what file name to look for as you are scanning the stack trace for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions