I have an application with async child routes. Following this link, I created a custom exception handler and caught all the base exceptions, but I cannot handle any
uncaughtPromiseErrors (template parse errors, etc.) that are being thrown in Angular polyfills.
These uncaught errors are hanging the application and the only solution is to reload the app. These errors are breaking the app/route-table before I catch the errors in the custom exception handler.
- Is it possible to handle these
uncaughterrorsin such a way that they will not crash the application?
- Should I override any methods in the Angular polyfills?
- Why the template parse errors are
uncaughterros? Can they be registered as base exceptions, so that it is possible to catch them in the custom handler?