Angular - How to implement component-level exception handling

When working inside Angular (Angular 4, 5), if a component raises an error (an error of type TypeError or null or undefined), the entire application is interrupted forward.

How can we handle this to catch component-level errors and possibly show a backup interface, for example, React16 uses Error Boundaries .

+4
source share

Source: https://habr.com/ru/post/1692525/


All Articles