-
Notifications
You must be signed in to change notification settings - Fork 27k
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: error handlingcore: zonelessIssues related to running Angular without zone.jsIssues related to running Angular without zone.js
Milestone
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
When working with zone.js we can easily capture errors (inside and outside Angular context) in the ErrorHandler using a CustomErrorHandler. When going zoneless we can no longer get both kinds of thrown errors.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/stackblitz-starters-ggzajl?file=src%2Fmain.ts
Please provide the exception or error you saw
When we have zoneless we can listen only to errors thrown in Angular context.
When we have zone enabled we can listen to all errors.
Please provide the environment you discovered this bug in (run ng version)
No response
Anything else?
This is probably correct behavior, but is there any way to get these errors through the custom error handler?
Bernoulli-IT and miljan-codeJeanMeche, charlieandroid55, LanderBeeuwsaert, DiogoLopes99, devdanielcambinda and 5 more
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: error handlingcore: zonelessIssues related to running Angular without zone.jsIssues related to running Angular without zone.js